MCPcopy Create free account
hub / github.com/egonelbre/exp / BenchmarkBlockCallback64

Function BenchmarkBlockCallback64

bench/sortedset/sortedset_test.go:145–157  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

143}
144
145func BenchmarkBlockCallback64(b *testing.B) {
146 set := newBenchSet()
147 b.ResetTimer()
148 total := 0
149 for i := 0; i < b.N; i++ {
150 set.IterBlockCallback(64, func(vs []int) {
151 for v := range vs {
152 total += v
153 }
154 })
155 }
156 _ = total
157}

Callers

nothing calls this directly

Calls 2

newBenchSetFunction · 0.85
IterBlockCallbackMethod · 0.80

Tested by

no test coverage detected