MCPcopy
hub / github.com/upper/db / BenchmarkSelect1

Function BenchmarkSelect1

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

Source from the content-addressed store, hash-verified

1613}
1614
1615func BenchmarkSelect1(b *testing.B) {
1616 bt := WithTemplate(&testTemplate)
1617 for n := 0; n < b.N; n++ {
1618 _ = bt.Select().From("artist").OrderBy("name DESC").String()
1619 }
1620}
1621
1622func BenchmarkSelect2(b *testing.B) {
1623 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 5

WithTemplateFunction · 0.85
StringMethod · 0.65
OrderByMethod · 0.65
FromMethod · 0.65
SelectMethod · 0.65

Tested by

no test coverage detected