32 lines
495 B
Go
Raw Normal View History

2024-06-16 14:57:33 +00:00
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()
}
}
2024-06-20 09:29:39 +00:00
func BenchmarkHello(b *testing.B) {
compiler := build.New("examples/hello")
for i := 0; i < b.N; i++ {
compiler.Run()
}
}