Run benchmarks during Pages build so the benchmarks page shows real data#159
Merged
Conversation
…mparison eval to file-count Agent-Logs-Url: https://github.com/githubnext/tsessebe/sessions/bc8c8dec-26dd-46a4-89e0-62e7f4d245c3 Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Regenerate benchmarks/results.json during Pages build
Run benchmarks during Pages build so the benchmarks page shows real data
Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
benchmarks/results.jsononmainis the empty stub, sobenchmarks.htmlrenders "No benchmark data available yet". PR #154 tried to regenerate it inside the perf-comparison autoloop, but that sandbox has nobun, so every iteration evaluates to 0 and the autoloop is stuck.Move benchmark execution to the Pages workflow (which already has Bun) and revert the autoloop's evaluation to the pre-#154 file-count metric.
.github/workflows/pages.yml— Setup Python earlier, runbash benchmarks/run_benchmarks.sh, then unconditionally copy the regeneratedbenchmarks/results.jsoninto the playground artifact. The existence guard is dropped — if benchmarks fail, the build should fail loudly..autoloop/programs/perf-comparison/program.md— Restore the original Evaluation section (countsmin(bench_*.ts, bench_*.py)files) so iterations can ratchet again without needing to execute benchmarks. Update the iteration prose to note that the Pages workflow regeneratesresults.jsonon merge tomain; the autoloop only needs to add benchmark scripts.Trade-offs
main, so PRs aren't blocked. Can be sharded with a matrix later if painful.