MCPcopy Create free account
hub / github.com/allegro/bigcache / BenchmarkAppendToCache

Function BenchmarkAppendToCache

bigcache_bench_test.go:56–62  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

54 }
55}
56func BenchmarkAppendToCache(b *testing.B) {
57 for _, shards := range []int{1, 512, 1024, 8192} {
58 b.Run(fmt.Sprintf("%d-shards", shards), func(b *testing.B) {
59 appendToCache(b, shards, 100*time.Second, b.N)
60 })
61 }
62}
63
64func BenchmarkReadFromCache(b *testing.B) {
65 for _, shards := range []int{1, 512, 1024, 8192} {

Callers

nothing calls this directly

Calls 1

appendToCacheFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…