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

Function BenchmarkRuntimeStore_SessionRead_Parallel

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

Source from the content-addressed store, hash-verified

201}
202
203func BenchmarkRuntimeStore_SessionRead_Parallel(b *testing.B) {
204 testStore := NewRuntimeStore(NewDefaultRuntimeConfig())
205 testValue := make(map[interface{}]interface{})
206 testValue["foo"] = "bar"
207 testStore.SessionUpdate(NewSessionState(testStore, "session_read", testValue))
208
209 b.RunParallel(func(pb *testing.PB) {
210 for pb.Next() {
211 testStore.SessionRead("session_read")
212 }
213 })
214 b.ReportAllocs()
215}
216
217func BenchmarkRuntimeStore_SessionCount_1(b *testing.B) {
218 for i := 0; i < b.N; i++ {

Callers

nothing calls this directly

Calls 6

SessionUpdateMethod · 0.95
SessionReadMethod · 0.95
NewRuntimeStoreFunction · 0.85
NewDefaultRuntimeConfigFunction · 0.85
NewSessionStateFunction · 0.85
NextMethod · 0.65

Tested by

no test coverage detected