Repository navigation
ci: split phpbench and phpbench-opcache into two shards each - #4562
Conversation
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: 5bace87 | Docs | View more details | Give us feedback! |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
The shard filters partition all 54 benchmark subjects without gaps or overlap. Shard-specific result names are consistent through artifact collection and regression checks, including the fallback for older baselines.
🤖 Bits Code Review · Commit c0e3052
Benchmarks [ tracer ]Benchmark execution time: 2026-11-26 16:49:02 Comparing candidate commit 5bace87 in PR branch Found 0 performance improvements and 0 performance regressions! Performance is the same for 218 metrics, 0 unstable metrics.
|
Leiyks
left a comment
There was a problem hiding this comment.
The shard split looks right. This needs a rebase though: #4537 moved this script into .gitlab/benchmarks/steps/run-revision.sh, so the PHPBENCH_SHARD fallback and the -1/-2 renames have to go there now. #4537 also builds and BOLT-aligns both revisions before timing in every job, so the timings are worth a quick re-check after the rebase.
Each phpbench part ran its 54 subjects twice (candidate and baseline) for about 25 of its 37-39 minutes. Split both parts with PHPBENCH_SHARD: shard 1 runs WordPressBench and LaravelBench (about 6 minutes per run), shard 2 every other subject (about 6.6 minutes), selected through the Makefile's FILTER. Shard results get a -1/-2 suffix so the merged reports/ keeps one file per shard; check-big-regressions requires all five tracer result files. A baseline runall.sh without PHPBENCH_SHARD runs the candidate's copy, as for TRACER_PART.
Match the single-line comment norm of run-revision.sh: compress the baseline-fallback comment to one line and drop the one narrating the suffix assignment. Also hoist the OPcache result stem into a variable so the shard suffix is interpolated once instead of three times.
c0e3052 to
5bace87
Compare
There was a problem hiding this comment.
More details
The shard filters cover all 54 benchmark methods without omissions or overlaps. Result-file naming and legacy-baseline fallback are consistent with the five-job matrix.
🤖 Bits Code Review · Commit 5bace87
Description
Each
benchmarks-tracerphpbench job ran all 54 subjects twice, candidate then baseline, and took 37–39 minutes. That set the end of the benchmarks stage and ofcheck-big-regressions.This PR splits
phpbenchandphpbench-opcacheinto two shards each with a new matrix variable,PHPBENCH_SHARD:runall.shpicks the shard through the Makefile'sFILTER. Shard result files get a-1/-2suffix, written byrunall.shand the rename in.gitlab/benchmarks/steps/run-revision.sh, andcheck-big-regressionsnow requires all five tracer result files. A baseline whoserunall.shpredatesPHPBENCH_SHARDruns the candidate's copy, the same fallback as forTRACER_PART.Measured with a forced baseline on both an experiment pipeline and a control pipeline from the same base:
check-big-regressionsendBoth compared the same 110 scenarios and 218 metrics and produced one combined PR comment body.
The table was measured before the rebase onto #4537, which moved the result-file rename into
run-revision.shand made every job build and BOLT-align both revisions before timing either. The benchmarks jobs on this pipeline re-check the timings under that flow.Cost: about 104 bare-metal runner-minutes per PR instead of 76, and 5 concurrent metal jobs instead of 3.
Risk: the result file names change (
tracer-bench-results-1,tracer-bench-results-opcache-2, ...). As far as I can tell from the upload scripts, the API keys series on the benchmark names inside each.converted.json, not on the file name, so series should carry on. Dashboards or queries that filter on the file name could still split, so this needs a check with the benchmarking platform team before merging.Follow-up: shard 2 runs about 3 minutes longer than shard 1 for phpbench. Moving the Symfony subjects to shard 1 could even them out; not measured here.
Rebased onto current master, which already includes #4559. #4560 also edits
.gitlab/benchmarks.yml; this PR doesn't depend on it and rebases again if #4560 merges first.Reviewer checklist