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

Function BenchmarkRuntimeStore_SessionUpdate_1

session/store_runtime_test.go:236–242  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

234}
235
236func BenchmarkRuntimeStore_SessionUpdate_1(b *testing.B) {
237 testStore := NewRuntimeStore(NewDefaultRuntimeConfig())
238 for i := 0; i < b.N; i++ {
239 testStore.SessionUpdate(session_states[i%1000])
240 }
241 b.ReportAllocs()
242}
243
244func BenchmarkRuntimeStore_SessionUpdate_Parallel(b *testing.B) {
245 testStore := NewRuntimeStore(NewDefaultRuntimeConfig())

Callers

nothing calls this directly

Calls 3

SessionUpdateMethod · 0.95
NewRuntimeStoreFunction · 0.85
NewDefaultRuntimeConfigFunction · 0.85

Tested by

no test coverage detected