Refactored code structure
This commit is contained in:
parent
9e52e2dd1c
commit
fd6e874b44
54 changed files with 583 additions and 450 deletions
26
tests/benchmarks_test.go
Normal file
26
tests/benchmarks_test.go
Normal file
|
@ -0,0 +1,26 @@
|
|||
package tests_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/build"
|
||||
"git.akyoto.dev/go/assert"
|
||||
)
|
||||
|
||||
func BenchmarkEmpty(b *testing.B) {
|
||||
compiler := build.New("benchmarks/empty.q")
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
_, err := compiler.Run()
|
||||
assert.Nil(b, err)
|
||||
}
|
||||
}
|
||||
|
||||
func BenchmarkExpressions(b *testing.B) {
|
||||
compiler := build.New("benchmarks/expressions.q")
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
_, err := compiler.Run()
|
||||
assert.Nil(b, err)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue