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

Function BenchmarkBlockCallback16

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

Source from the content-addressed store, hash-verified

115}
116
117func BenchmarkBlockCallback16(b *testing.B) {
118 set := newBenchSet()
119 b.ResetTimer()
120 total := 0
121 for i := 0; i < b.N; i++ {
122 set.IterBlockCallback(16, func(vs []int) {
123 for v := range vs {
124 total += v
125 }
126 })
127 }
128 _ = total
129}
130
131func BenchmarkBlockCallback32(b *testing.B) {
132 set := newBenchSet()

Callers

nothing calls this directly

Calls 2

newBenchSetFunction · 0.85
IterBlockCallbackMethod · 0.80

Tested by

no test coverage detected