MCPcopy Index your code
hub / github.com/gocraft/dbr / BenchmarkInsertValuesSQL

Function BenchmarkInsertValuesSQL

insert_test.go:45–50  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

43}
44
45func BenchmarkInsertValuesSQL(b *testing.B) {
46 buf := NewBuffer()
47 for i := 0; i < b.N; i++ {
48 InsertInto("table").Columns("a", "b").Values(1, "one").Build(dialect.MySQL, buf)
49 }
50}
51
52func BenchmarkInsertRecordSQL(b *testing.B) {
53 buf := NewBuffer()

Callers

nothing calls this directly

Calls 5

NewBufferFunction · 0.85
InsertIntoFunction · 0.85
ValuesMethod · 0.80
ColumnsMethod · 0.80
BuildMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…