// 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 BenchmarkSelectBuilder(b *testing.B) { b.ResetTimer() for i := 0; i < b.N; i++ { Select("cycling.cyclist_name"). Columns("id", "user_uuid", "firstname", "surname", "stars"). Where(Eq("id")). ToCql() } } func BenchmarkSelectBuildAssign(b *testing.B) { b.ResetTimer() cols := []string{ "id", "user_uuid", "firstname", "surname", "stars", } for i := 0; i < b.N; i++ { Select("cycling.cyclist_name"). Columns(cols...). Where(Eq("id")). ToCql() } }