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

Function BenchmarkNewCache

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

Source from the content-addressed store, hash-verified

70}
71
72func BenchmarkNewCache(b *testing.B) {
73 for i := 0; i < b.N; i++ {
74 NewCache()
75 }
76}
77
78func BenchmarkNewCacheAndClear(b *testing.B) {
79 for i := 0; i < b.N; i++ {

Callers

nothing calls this directly

Calls 1

NewCacheFunction · 0.85

Tested by

no test coverage detected