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

Function BenchmarkInsert4

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

Source from the content-addressed store, hash-verified

1596}
1597
1598func BenchmarkInsert4(b *testing.B) {
1599 bt := WithTemplate(&testTemplate)
1600 for n := 0; n < b.N; n++ {
1601 _ = bt.InsertInto("artist").Values(map[string]interface{}{"name": "Chavela Vargas", "id": 12}).String()
1602 }
1603}
1604
1605func BenchmarkInsert5(b *testing.B) {
1606 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