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

Function BenchmarkDelete2

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

Source from the content-addressed store, hash-verified

1568}
1569
1570func BenchmarkDelete2(b *testing.B) {
1571 bt := WithTemplate(&testTemplate)
1572 for n := 0; n < b.N; n++ {
1573 _ = bt.DeleteFrom("artist").Where("id > 5").String()
1574 }
1575}
1576
1577func BenchmarkInsert1(b *testing.B) {
1578 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 4

WithTemplateFunction · 0.85
StringMethod · 0.65
WhereMethod · 0.65
DeleteFromMethod · 0.65

Tested by

no test coverage detected