(b *testing.B)
| 134 | } |
| 135 | |
| 136 | func BenchmarkLockFreePoolOverPut(b *testing.B) { |
| 137 | pool := NewLockFreePool[int](func() int { return 0 }) |
| 138 | for i := 0; i < 1024; i++ { |
| 139 | pool.Put(0) |
| 140 | } |
| 141 | b.ResetTimer() |
| 142 | for i := 0; i < b.N; i++ { |
| 143 | pool.Put(0) |
| 144 | } |
| 145 | } |