Simplified file structure
This commit is contained in:
17
src/expression/bench_test.go
Normal file
17
src/expression/bench_test.go
Normal file
@ -0,0 +1,17 @@
|
||||
package expression_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"git.akyoto.dev/cli/q/src/expression"
|
||||
"git.akyoto.dev/cli/q/src/token"
|
||||
)
|
||||
|
||||
func BenchmarkExpression(b *testing.B) {
|
||||
src := []byte("(1+2-3*4)+(5*6-7+8)")
|
||||
tokens := token.Tokenize(src)
|
||||
|
||||
for i := 0; i < b.N; i++ {
|
||||
expression.Parse(tokens)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user