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

Function BenchmarkInsert3

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

Source from the content-addressed store, hash-verified

1589}
1590
1591func BenchmarkInsert3(b *testing.B) {
1592 bt := WithTemplate(&testTemplate)
1593 for n := 0; n < b.N; n++ {
1594 _ = bt.InsertInto("artist").Values(map[string]string{"id": "12", "name": "Chavela Vargas"}).Returning("id").String()
1595 }
1596}
1597
1598func BenchmarkInsert4(b *testing.B) {
1599 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected