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

Function BenchmarkUpdate4

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

Source from the content-addressed store, hash-verified

1675}
1676
1677func BenchmarkUpdate4(b *testing.B) {
1678 bt := WithTemplate(&testTemplate)
1679 for n := 0; n < b.N; n++ {
1680 _ = bt.Update("artist").Set(map[string]string{"name": "Artist"}).Where(db.Cond{"id <": 5}).String()
1681 }
1682}
1683
1684func BenchmarkUpdate5(b *testing.B) {
1685 bt := WithTemplate(&testTemplate)

Callers

nothing calls this directly

Calls 5

WithTemplateFunction · 0.85
StringMethod · 0.65
WhereMethod · 0.65
SetMethod · 0.65
UpdateMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…