MCPcopy Index your code
hub / github.com/Masterminds/squirrel / BenchmarkPlaceholdersArray

Function BenchmarkPlaceholdersArray

placeholder_test.go:56–63  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

54}
55
56func BenchmarkPlaceholdersArray(b *testing.B) {
57 var count = b.N
58 placeholders := make([]string, count)
59 for i := 0; i < count; i++ {
60 placeholders[i] = "?"
61 }
62 var _ = strings.Join(placeholders, ",")
63}
64
65func BenchmarkPlaceholdersStrings(b *testing.B) {
66 Placeholders(b.N)

Callers

nothing calls this directly

Calls 1

JoinMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…