MCPcopy
hub / github.com/kopia/kopia / BenchmarkMap_NoValue

Function BenchmarkMap_NoValue

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

Source from the content-addressed store, hash-verified

71}
72
73func BenchmarkMap_NoValue(b *testing.B) {
74 ctx := testlogging.Context(b)
75 m, err := bigmap.NewMapWithOptions(ctx, nil)
76 require.NoError(b, err)
77
78 defer m.Close(ctx)
79
80 benchmarkMap(b, m, []byte{})
81}
82
83func BenchmarkMap_WithValue(b *testing.B) {
84 ctx := testlogging.Context(b)

Callers

nothing calls this directly

Calls 4

ContextFunction · 0.92
NewMapWithOptionsFunction · 0.92
benchmarkMapFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected