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

Function BenchmarkInsert5

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

Source from the content-addressed store, hash-verified

1603}
1604
1605func BenchmarkInsert5(b *testing.B) {
1606 bt := WithTemplate(&testTemplate)
1607 for n := 0; n < b.N; n++ {
1608 _ = bt.InsertInto("artist").Values(struct {
1609 ID int `db:"id"`
1610 Name string `db:"name"`
1611 }{12, "Chavela Vargas"}).String()
1612 }
1613}
1614
1615func BenchmarkSelect1(b *testing.B) {
1616 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