MCPcopy Create free account
hub / github.com/cockroachdb/swiss / BenchmarkMapPutGrow

Function BenchmarkMapPutGrow

bench_test.go:61–72  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

59}
60
61func 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
74func BenchmarkMapPutPreAllocate(b *testing.B) {
75 b.Run("impl=runtimeMap", func(b *testing.B) {

Callers

nothing calls this directly

Calls 1

benchSizesFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…