Updated Go version
This commit is contained in:
@ -49,7 +49,7 @@ func BenchmarkExamples(b *testing.B) {
|
||||
b.Run(test.Name, func(b *testing.B) {
|
||||
compiler := build.New(filepath.Join("..", "examples", test.Name))
|
||||
|
||||
for range b.N {
|
||||
for b.Loop() {
|
||||
_, err := compiler.Run()
|
||||
assert.Nil(b, err)
|
||||
}
|
||||
|
@ -86,7 +86,7 @@ func BenchmarkPrograms(b *testing.B) {
|
||||
b.Run(test.Name, func(b *testing.B) {
|
||||
compiler := build.New(filepath.Join("programs", test.Name+".q"))
|
||||
|
||||
for range b.N {
|
||||
for b.Loop() {
|
||||
_, err := compiler.Run()
|
||||
assert.Nil(b, err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user