-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JET-suggested improvements and benchmarking with PkgBenchmarks #108
Draft
BoZenKhaa
wants to merge
22
commits into
master
Choose a base branch
from
jet_improvements
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #108 +/- ##
==========================================
- Coverage 86.74% 86.58% -0.17%
==========================================
Files 11 11
Lines 483 492 +9
==========================================
+ Hits 419 426 +7
- Misses 64 66 +2 ☔ View full report in Codecov by Sentry. |
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.
JET suggested improvements and benchmarking with PkgBenchmarks
This PR is a work in progress, and I am opening it for posterity since I have to move on for now and possibly to get other opinions on how to do this better.
I have tried using JET on MCTS.jl; this PR addresses issues highlighted by JET. I tried to benchmark the individual changes to see whether these issues were real.
Comparison of consecutive changes to baseline
The baseline should correspond to the latest master, with the addition of the benchmarking scripts.
Below are the results; the ratios are all to the same baseline, and all changes are additive, i.e., 30242a7 includes all the changes above it in the table.
The time regressions are minor; some of them could be noise. The memory improvement is quite significant, but I haven't investigated which part of the commit is responsible yet.
Todos and benchmarking
I fumbled a bit with the benchmarking. First, I tried using BenchmarkTools.jl manually, then I tried using AirspeedVelocity.jl until finally settling on using PkgBenchmark.jl which eventually worked out with following workflow:
/benchmark/benchmarks.jl
and commit them to a benchmarking branch] dev MCTS
in the benchmarking environment, use PkgBenchmark.jl to evaluate the commits.What's still missing:
benchmark_packages.zip