Commit 7fdd44a
authored
ci: parallelize benchmark tests across 3 runners (#54)
* ci: parallelize benchmark tests across 3 runners
Split the single Benchmark Tests job into a matrix of 3 parallel jobs,
one per package (controller, metrics, recommendation). This reduces
wall-clock time from ~10 minutes (sum of all) to ~max(controller),
roughly a 2-3x speedup.
Each shard maintains its own baseline cache for benchstat comparison.
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
* ci: split controller benchmarks into core and scale shards
Further split the controller benchmark shard (8m41s) into two parallel
jobs using -bench regex filtering:
- controller-core: fast benchmarks (BuildPrometheusQuery, Reconcile,
ComputeRecommendations) -- ~1 min expected
- controller-scale: scale benchmarks (ManyWorkloads, ManyPolicies,
ConcurrentPolicies up to 1000) -- the heavy tail
Total shards: 4 (controller-core, controller-scale, metrics, recommendation)
Expected wall-clock: max(controller-scale) instead of sum(all).
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
---------
Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>1 parent ef8cc5c commit 7fdd44a
1 file changed
Lines changed: 21 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
303 | | - | |
| 303 | + | |
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | 307 | | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
308 | 324 | | |
309 | 325 | | |
310 | 326 | | |
| |||
324 | 340 | | |
325 | 341 | | |
326 | 342 | | |
327 | | - | |
328 | | - | |
| 343 | + | |
| 344 | + | |
329 | 345 | | |
330 | 346 | | |
331 | 347 | | |
332 | 348 | | |
333 | | - | |
| 349 | + | |
334 | 350 | | |
335 | 351 | | |
336 | 352 | | |
| |||
360 | 376 | | |
361 | 377 | | |
362 | 378 | | |
363 | | - | |
| 379 | + | |
364 | 380 | | |
365 | 381 | | |
366 | 382 | | |
| |||
0 commit comments