(b *testing.B)
| 59 | } |
| 60 | |
| 61 | func BenchmarkMapPutGrow(b *testing.B) { |
| 62 | b.Run("impl=runtimeMap", func(b *testing.B) { |
| 63 | b.Run("t=Int64", benchSizes(benchmarkRuntimeMapPutGrow[int64], genKeys[int64])) |
| 64 | b.Run("t=Int32", benchSizes(benchmarkRuntimeMapPutGrow[int32], genKeys[int32])) |
| 65 | b.Run("t=String", benchSizes(benchmarkRuntimeMapPutGrow[string], genKeys[string])) |
| 66 | }) |
| 67 | b.Run("impl=swissMap", func(b *testing.B) { |
| 68 | b.Run("t=Int64", benchSizes(benchmarkSwissMapPutGrow[int64], genKeys[int64])) |
| 69 | b.Run("t=Int32", benchSizes(benchmarkSwissMapPutGrow[int32], genKeys[int32])) |
| 70 | b.Run("t=String", benchSizes(benchmarkSwissMapPutGrow[string], genKeys[string])) |
| 71 | }) |
| 72 | } |
| 73 | |
| 74 | func BenchmarkMapPutPreAllocate(b *testing.B) { |
| 75 | b.Run("impl=runtimeMap", func(b *testing.B) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…