MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / BenchmarkWorkerPool

Function BenchmarkWorkerPool

pkg/workerpool/workerpool_test.go:277–291  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

275}
276
277func BenchmarkWorkerPool(b *testing.B) {
278 delays := []time.Duration{5 * time.Millisecond, 10 * time.Millisecond, 50 * time.Millisecond}
279 for _, processingDelay := range delays {
280 for _, publishingDelay := range delays {
281 name := fmt.Sprintf(
282 "processingDelay/%v/publishingDelay/%v",
283 processingDelay,
284 publishingDelay,
285 )
286 b.Run(name, func(b *testing.B) {
287 benchmarkWorkerPool(b, processingDelay, publishingDelay)
288 })
289 }
290 }
291}

Callers

nothing calls this directly

Calls 2

benchmarkWorkerPoolFunction · 0.85
RunMethod · 0.65

Tested by

no test coverage detected