(b *testing.B)
| 201 | } |
| 202 | |
| 203 | func 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 | |
| 217 | func BenchmarkRuntimeStore_SessionCount_1(b *testing.B) { |
| 218 | for i := 0; i < b.N; i++ { |
nothing calls this directly
no test coverage detected