Add benchmark workflow#449
Open
sinsoku wants to merge 2 commits into
Open
Conversation
sinsoku
force-pushed
the
add-projects-bench
branch
from
May 5, 2026 13:24
a9078c6 to
a7d4144
Compare
Collaborator
Author
|
@mame |
Member
|
This looks really nice! I'd like to give it a try. A few thoughts on the open questions:
|
sinsoku
force-pushed
the
add-projects-bench
branch
2 times, most recently
from
May 10, 2026 04:00
9ba1610 to
82679bc
Compare
sinsoku
marked this pull request as ready for review
May 10, 2026 04:55
Run TypeProf against TypeProf itself, Optcarrot, and Redmine on each push to master, and publish elapsed time and type coverage as charts on GitHub Pages. - `tool/benchmarks/<project>.rb` defines each target (repo, ref, setup). - `tool/benchmark_helper.rb` runs TypeProf and parses `--show-stats`. - `tool/update_site_data.rb` appends to `tool/site/data.json` and writes a per-commit snapshot used to bust CDN cache on the next run. - `tool/site/index.html` renders charts with Chart.js. - `.github/workflows/benchmark.yml` runs benchmarks and deploys Pages.
So regressions surface on PRs, not only after merging to master.
sinsoku
force-pushed
the
add-projects-bench
branch
from
May 10, 2026 12:40
82679bc to
4b7e18e
Compare
Collaborator
Author
|
@mame
The CI uses |
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.
Motivation / Background
We want to prevent regressions by running TypeProf on real-world Ruby code.
Additionally, we want to measure improvements (or deteriorations) in performance and type inference accuracy.
Detail
Run TypeProf against TypeProf itself, Optcarrot, and Redmine on each
push to master, and publish the following metrics as charts on GitHub
Pages:
Example (running on my fork):
Setup
Please set Settings → Pages → Source to
GitHub Actions(once,admin only) so the
deployjob can publish the dashboard.Resolved questions
Removetool/dog_bench.rb?It overlaps with
tool/benchmarks/typeprof.rb, but might still beuseful for ad-hoc profiling.
-> Keep it; still useful for ad-hoc profiling.
Run benchmarks on each PR?Catches regressions earlier, but each run takes a few minutes.
-> Added as a CI test (not a benchmark) against real-world projects.