testing: benchmarks moved to separate files
This commit is contained in:
14
qb/update_bench_test.go
Normal file
14
qb/update_bench_test.go
Normal file
@@ -0,0 +1,14 @@
|
||||
// Copyright (C) 2017 ScyllaDB
|
||||
// Use of this source code is governed by a ALv2-style
|
||||
// license that can be found in the LICENSE file.
|
||||
|
||||
package qb
|
||||
|
||||
import "testing"
|
||||
|
||||
func BenchmarkUpdateBuilder(b *testing.B) {
|
||||
b.ResetTimer()
|
||||
for i := 0; i < b.N; i++ {
|
||||
Update("cycling.cyclist_name").Set("id", "user_uuid", "firstname", "stars").Where(Eq("id")).ToCql()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user