(b *testing.B)
| 98 | } |
| 99 | |
| 100 | func BenchmarkMapPutDelete(b *testing.B) { |
| 101 | b.Run("impl=runtimeMap", func(b *testing.B) { |
| 102 | b.Run("t=Int64", benchSizes(benchmarkRuntimeMapPutDelete[int64], genKeys[int64])) |
| 103 | b.Run("t=Int32", benchSizes(benchmarkRuntimeMapPutDelete[int32], genKeys[int32])) |
| 104 | b.Run("t=String", benchSizes(benchmarkRuntimeMapPutDelete[string], genKeys[string])) |
| 105 | }) |
| 106 | b.Run("impl=swissMap", func(b *testing.B) { |
| 107 | b.Run("t=Int64", benchSizes(benchmarkSwissMapPutDelete[int64], genKeys[int64])) |
| 108 | b.Run("t=Int32", benchSizes(benchmarkSwissMapPutDelete[int32], genKeys[int32])) |
| 109 | b.Run("t=String", benchSizes(benchmarkSwissMapPutDelete[string], genKeys[string])) |
| 110 | }) |
| 111 | } |
| 112 | |
| 113 | type benchTypes interface { |
| 114 | int32 | int64 | string |
nothing calls this directly
no test coverage detected
searching dependent graphs…