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

Function BenchmarkSelect5

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

Source from the content-addressed store, hash-verified

1641}
1642
1643func BenchmarkSelect5(b *testing.B) {
1644 t := WithTemplate(&testTemplate)
1645 b.ResetTimer()
1646 for n := 0; n < b.N; n++ {
1647 _ = t.SelectFrom("artist a").
1648 LeftJoin("publication p1").On("p1.id = a.id").
1649 RightJoin("publication p2").On("p2.id = a.id").
1650 String()
1651 }
1652}
1653
1654func BenchmarkUpdate1(b *testing.B) {
1655 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 6

WithTemplateFunction · 0.85
StringMethod · 0.65
OnMethod · 0.65
RightJoinMethod · 0.65
LeftJoinMethod · 0.65
SelectFromMethod · 0.65

Tested by

no test coverage detected