MCPcopy Create free account
hub / github.com/devfeel/dotweb / BenchmarkTestRuntimeCache_Get

Function BenchmarkTestRuntimeCache_Get

cache/runtime/cache_runtime_test.go:189–195  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

187}
188
189func BenchmarkTestRuntimeCache_Get(b *testing.B) {
190 cache := NewRuntimeCache()
191 cache.Set(TESTCacheKey, TESTCacheValue, 200000)
192 for i := 0; i < b.N; i++ {
193 cache.Get(TESTCacheKey)
194 }
195}
196
197func BenchmarkTestRuntimeCache_Set(b *testing.B) {
198 cache := NewRuntimeCache()

Callers

nothing calls this directly

Calls 3

SetMethod · 0.95
GetMethod · 0.95
NewRuntimeCacheFunction · 0.70

Tested by

no test coverage detected