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

Function BenchmarkTestRuntimeCache_Set

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

Source from the content-addressed store, hash-verified

195}
196
197func BenchmarkTestRuntimeCache_Set(b *testing.B) {
198 cache := NewRuntimeCache()
199 for i := 0; i < b.N; i++ {
200 cache.Set(TESTCacheKey+strconv.Itoa(i), TESTCacheValue, 0)
201 }
202}
203
204func TestRuntimeCache_ConcurrentGetSetError(t *testing.T) {
205 cache := NewRuntimeCache()

Callers

nothing calls this directly

Calls 2

SetMethod · 0.95
NewRuntimeCacheFunction · 0.70

Tested by

no test coverage detected