MCPcopy
hub / github.com/kopia/kopia / BenchmarkMap_WithValue

Function BenchmarkMap_WithValue

internal/bigmap/bigmap_map_test.go:83–91  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

81}
82
83func BenchmarkMap_WithValue(b *testing.B) {
84 ctx := testlogging.Context(b)
85 m, err := bigmap.NewMap(ctx)
86 require.NoError(b, err)
87
88 defer m.Close(ctx)
89
90 benchmarkMap(b, m, []byte{1, 2, 3})
91}
92
93//nolint:thelper
94func benchmarkMap(b *testing.B, m *bigmap.Map, someVal []byte) {

Callers

nothing calls this directly

Calls 4

CloseMethod · 0.95
ContextFunction · 0.92
NewMapFunction · 0.92
benchmarkMapFunction · 0.85

Tested by

no test coverage detected