(b *testing.B)
| 29 | } |
| 30 | |
| 31 | func BenchmarkReflectPointer(b *testing.B) { |
| 32 | m := NewPointerMap(0, 0) |
| 33 | for i := 0; i < b.N; i++ { |
| 34 | m.Add(unsafe.Pointer(&i), unsafe.Pointer(&i)) |
| 35 | } |
| 36 | } |
| 37 | func BenchmarkUnsafe(b *testing.B) { |
| 38 | m := NewUnsafeMap(0, 0) |
| 39 | for i := 0; i < b.N; i++ { |
nothing calls this directly
no test coverage detected