(b *testing.B)
| 205 | } |
| 206 | |
| 207 | func BenchmarkList_Add(b *testing.B) { |
| 208 | var list = expires.NewList() |
| 209 | b.ResetTimer() |
| 210 | b.RunParallel(func(pb *testing.PB) { |
| 211 | for pb.Next() { |
| 212 | list.Add(rand.Uint64(), fasttime.Now().Unix()+int64(rand.Int()%10_000_000)) |
| 213 | } |
| 214 | }) |
| 215 | } |
| 216 | |
| 217 | func Benchmark_Map_Uint64(b *testing.B) { |
| 218 | runtime.GOMAXPROCS(1) |