(b *testing.B)
| 68 | } |
| 69 | |
| 70 | func BenchmarkItem_Increase(b *testing.B) { |
| 71 | runtime.GOMAXPROCS(1) |
| 72 | |
| 73 | b.ReportAllocs() |
| 74 | |
| 75 | b.RunParallel(func(pb *testing.PB) { |
| 76 | for pb.Next() { |
| 77 | var item = counters.NewItem[uint32](60) |
| 78 | item.Increase() |
| 79 | item.Sum() |
| 80 | } |
| 81 | }) |
| 82 | } |