Skip to content
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

BENCH: rationalize slow benchmarks + miscellaneous fixes #9235

Merged
merged 10 commits into from
Sep 7, 2018

Conversation

pv
Copy link
Member

@pv pv commented Sep 6, 2018

Fix Python 3 bugs.
Skip slowest "comparison" benchmarks, which e.g. benchmark numpy routines or non-relevant scipy routines.
Limit the problem sizes for which some benchmarks are run, in order to reduce runtime.
Rewrite benchmarks/sparse.NullSlice setup() in a faster way.
Fix bugs in benchmark code.

Set benchmark version numbers, so that the changes won't invalidate old results. They don't need to be kept in sync with anything or updated in the future. (asv only looks if the .version attribute changes, it doesn't care what is in it. The values here are copypasted from results/benchmarks.json --- they come from the default behavior of hashing the source code for setup() and time_*().)

I didn't look here at benchmarks/spatial.py, maybe there's something to fix also there.

First look at gh-9225, trying to fix the worst offenders...

[no ci] / canceled manually

The version numbers are copypasted from previous results/benchmarks.json.

If the benchmarks are changed in the future substantially, the .version
attributes can be removed. If they are changed without affecting the
results, the .version can stay the same.
@rgommers rgommers added the Benchmarks Running, verifying or documenting benchmarks for SciPy label Sep 6, 2018
@rgommers
Copy link
Member

rgommers commented Sep 6, 2018

would be good to put the description of what time_*.version means in the README; from just reading the comment in the code it's not too clear.

@pv
Copy link
Member Author

pv commented Sep 6, 2018

It's in principle explained in asv documentation. Do you think it's useful to duplicate it here?

OK, added short description.

@rgommers rgommers merged commit f937c00 into scipy:master Sep 7, 2018
@rgommers
Copy link
Member

rgommers commented Sep 7, 2018

Thanks, merged.

@rgommers rgommers added this to the 1.2.0 milestone Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Benchmarks Running, verifying or documenting benchmarks for SciPy
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants