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

Function BenchmarkInsert1

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

Source from the content-addressed store, hash-verified

1575}
1576
1577func BenchmarkInsert1(b *testing.B) {
1578 bt := WithTemplate(&testTemplate)
1579 for n := 0; n < b.N; n++ {
1580 _ = bt.InsertInto("artist").Values(10, "Ryuichi Sakamoto").Values(11, "Alondra de la Parra").Values(12, "Haruki Murakami").String()
1581 }
1582}
1583
1584func BenchmarkInsert2(b *testing.B) {
1585 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 4

WithTemplateFunction · 0.85
StringMethod · 0.65
ValuesMethod · 0.65
InsertIntoMethod · 0.65

Tested by

no test coverage detected