MCPcopy
hub / github.com/labstack/echo / benchmarkStore

Function benchmarkStore

middleware/rate_limiter_test.go:477–485  ·  view source on GitHub ↗
(store RateLimiterStore, parallel int, max int, b *testing.B)

Source from the content-addressed store, hash-verified

475}
476
477func benchmarkStore(store RateLimiterStore, parallel int, max int, b *testing.B) {
478 addrs := generateAddressList(max)
479 wg := &sync.WaitGroup{}
480 for range parallel {
481 wg.Add(1)
482 go run(wg, store, addrs, max, b)
483 }
484 wg.Wait()
485}
486
487const (
488 testExpiresIn = 1000 * time.Millisecond

Calls 3

generateAddressListFunction · 0.85
runFunction · 0.85
AddMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…