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

Function BenchmarkSelect4

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

Source from the content-addressed store, hash-verified

1634}
1635
1636func BenchmarkSelect4(b *testing.B) {
1637 bt := WithTemplate(&testTemplate)
1638 for n := 0; n < b.N; n++ {
1639 _ = bt.SelectFrom("artist").Join("publication p").On("p.author_id = a.id").Where("a.id = 2").Limit(1).String()
1640 }
1641}
1642
1643func BenchmarkSelect5(b *testing.B) {
1644 t := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 7

WithTemplateFunction · 0.85
StringMethod · 0.65
LimitMethod · 0.65
WhereMethod · 0.65
OnMethod · 0.65
JoinMethod · 0.65
SelectFromMethod · 0.65

Tested by

no test coverage detected