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

Function BenchmarkDelete1

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

Source from the content-addressed store, hash-verified

1561}
1562
1563func BenchmarkDelete1(b *testing.B) {
1564 bt := WithTemplate(&testTemplate)
1565 for n := 0; n < b.N; n++ {
1566 _ = bt.DeleteFrom("artist").Where("name = ?", "Chavela Vargas").Limit(1).String()
1567 }
1568}
1569
1570func BenchmarkDelete2(b *testing.B) {
1571 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 5

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

Tested by

no test coverage detected