24 lines
366 B
Go

package main_test
import (
"testing"
"git.akyoto.dev/cli/q/src/build"
)
func BenchmarkEmpty(b *testing.B) {
compiler := build.New("tests/benchmarks/empty.q")
for i := 0; i < b.N; i++ {
compiler.Run()
}
}
func BenchmarkExpressions(b *testing.B) {
compiler := build.New("tests/benchmarks/expressions.q")
for i := 0; i < b.N; i++ {
compiler.Run()
}
}