ASV Benchmarks Integration#209
Open
vchamarthi wants to merge 2 commits into
Open
Conversation
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.
Adds an ASV benchmark suite to track
mkl_umathperformance over time.Benchmarks
micro/- Single-ufunc timing benchmarks acrossdtype - {float32, float64}×size - {10K, 100K, 1M}.Arrays are pre-allocated in
setup()and reused across timing calls.bench_trig.pysin,cos,tan,arcsin,arccos,arctan,arctan2,sinh,cosh,tanhbench_exp_log.pyexp,exp2,expm1,log,log2,log10,log1pbench_sqrt_misc.pysqrt,cbrt,square,fabs,absolute,reciprocalnpbench/- 14 application-level workloads adapted from the npbench benchmark suite(kernels inlined, no external dependency). Each runs at
preset - {M, L}. All usesetup_cache()so expensive array initialization runs once per commit, not once pertiming repeat.
Patch script
_patch_setup.py- Runs once per ASV worker process at package import. Appliesmkl_fft,mkl_random, andmkl_umathpatches via their public APIs and hard-failswith a descriptive
RuntimeErrorif any patch does not take effect. Benchmarks cannever silently fall back to stock NumPy.