(b *testing.B)
| 275 | } |
| 276 | |
| 277 | func 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 | } |
nothing calls this directly
no test coverage detected