-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add asv benchmark jobs to CI #5796
Conversation
Awesome!! Thanks a lot @Illviljan ! On how we run these — I would be fine with the labeled approach that scikit-learn uses. What else do you think is needed for this? It already looks excellent, thank you. |
Here's some things besides not getting green ticks @max-sixty:
|
yeah this is a problem. Maybe we need to go through and mark the slow tests like in the README_ci.md document
Do you mean skipping those that require bottleneck rather than relying on asv to handle the crash? If so, sounds good
An alternative approach would be to use something similar to our |
Ah one major problem IIUC is that we run a lot of benchmarks with and without bottleneck even if bottleneck isn't involved in the operation being benchmarked. Some of the following should be fixed
|
Hmm, I was just thinking installing all possible dependencies. But I think I've simply misunderstood the tests and why they were crashing. The
Edit: I think I understand now. We get a bunch of Traceback errors, that's why it's erroring even though the performance didn't change. |
@dcherian did you have something specific in mind when you linked to https://github.com/jaimergp/scikit-image/blob/main/.github/workflows/benchmarks-cron.yml in #4648? I think I'll remove it otherwise and just focus on
|
There we go. I think the workflow works as intended now we'll see in 3-4 hours. |
Here's how long Changed the shape to |
Thanks @Illviljan this is great work! |
* upstream/main: Only run asv benchmark when labeled (pydata#5893) Add asv benchmark jobs to CI (pydata#5796) Remove use of deprecated `kind` argument in `CFTimeIndex` tests (pydata#5723) Single matplotlib import (pydata#5794) Check jupyter nbs with black in pre-commit (pydata#5891)
Also fix many benchmarks.
Workflow based on the version from scikit-image. Modfied to have
asv.conf.json
inside a subdirectory and triggers every push if the PR has therun-benchmark
label.Notes:
References:
Tests checked:
TODO:
pre-commit run --all-files
whats-new.rst