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

Function BenchmarkSelect3

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

Source from the content-addressed store, hash-verified

1627}
1628
1629func BenchmarkSelect3(b *testing.B) {
1630 bt := WithTemplate(&testTemplate)
1631 for n := 0; n < b.N; n++ {
1632 _ = bt.Select().From("artist a", "publication as p").Where("p.author_id = a.id").Limit(1).String()
1633 }
1634}
1635
1636func BenchmarkSelect4(b *testing.B) {
1637 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 6

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

Tested by

no test coverage detected