MCPcopy Index your code
hub / github.com/upper/db / BenchmarkSelect2

Function BenchmarkSelect2

internal/sqlbuilder/builder_test.go:1622–1627  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

1620}
1621
1622func BenchmarkSelect2(b *testing.B) {
1623 bt := WithTemplate(&testTemplate)
1624 for n := 0; n < b.N; n++ {
1625 _ = bt.Select("id").From("artist").Where(`name LIKE ? OR name LIKE ?`, `%Miya%`, `F%`).String()
1626 }
1627}
1628
1629func BenchmarkSelect3(b *testing.B) {
1630 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 5

WithTemplateFunction · 0.85
StringMethod · 0.65
WhereMethod · 0.65
FromMethod · 0.65
SelectMethod · 0.65

Tested by

no test coverage detected