MCPcopy
hub / github.com/valyala/quicktemplate / getBenchRows

Function getBenchRows

tests/templates_timing_test.go:111–121  ·  view source on GitHub ↗
(n int)

Source from the content-addressed store, hash-verified

109}
110
111func getBenchRows(n int) []templates.BenchRow {
112 rows := make([]templates.BenchRow, n)
113 for i := 0; i < n; i++ {
114 rows[i] = templates.BenchRow{
115 ID: i,
116 Message: fmt.Sprintf("message %d", i),
117 Print: ((i & 1) == 0),
118 }
119 }
120 return rows
121}

Callers 4

initFunction · 0.85
benchmarkQuickTemplateFunction · 0.85
benchmarkHTMLTemplateFunction · 0.85
benchmarkTextTemplateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…