MCPcopy Index your code
hub / github.com/upper/db / BenchmarkReadNonExistentValue

Function BenchmarkReadNonExistentValue

internal/cache/cache_test.go:85–92  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

83}
84
85func BenchmarkReadNonExistentValue(b *testing.B) {
86 key := cacheableT{"foo"}
87
88 z := NewCache()
89 for i := 0; i < b.N; i++ {
90 z.Read(&key)
91 }
92}
93
94func BenchmarkWriteSameValue(b *testing.B) {
95 key := cacheableT{"foo"}

Callers

nothing calls this directly

Calls 2

ReadMethod · 0.95
NewCacheFunction · 0.85

Tested by

no test coverage detected