Implemented expression parsing
This commit is contained in:
parent
1b99722cd8
commit
0ed071a7ee
18 changed files with 618 additions and 99 deletions
23
bench_test.go
Normal file
23
bench_test.go
Normal file
|
@ -0,0 +1,23 @@
|
|||
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()
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue