(b *testing.B)
| 323 | } |
| 324 | |
| 325 | func BenchmarkWriteHashMapUint(b *testing.B) { |
| 326 | m := hashmap.New[uintptr, uintptr]() |
| 327 | b.ResetTimer() |
| 328 | |
| 329 | for n := 0; n < b.N; n++ { |
| 330 | for i := uintptr(0); i < benchmarkItemCount; i++ { |
| 331 | m.Set(i, i) |
| 332 | } |
| 333 | } |
| 334 | } |
| 335 | |
| 336 | func BenchmarkWriteGoMapMutexUint(b *testing.B) { |
| 337 | m := make(map[uintptr]uintptr) |