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

Function BenchmarkInsert2

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

Source from the content-addressed store, hash-verified

1582}
1583
1584func BenchmarkInsert2(b *testing.B) {
1585 bt := WithTemplate(&testTemplate)
1586 for n := 0; n < b.N; n++ {
1587 _ = bt.InsertInto("artist").Values(map[string]string{"id": "12", "name": "Chavela Vargas"}).String()
1588 }
1589}
1590
1591func BenchmarkInsert3(b *testing.B) {
1592 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