Add benchmark workflow#449
Draft
sinsoku wants to merge 1 commit intoruby:masterfrom
Draft
Conversation
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.
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:
|
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.Open questions
A couple of open questions:
Remove
tool/dog_bench.rb?It overlaps with
tool/benchmarks/typeprof.rb, but might still beuseful for ad-hoc profiling.
Run benchmarks on each PR?
Catches regressions earlier, but each run takes a few minutes.