python -m pip install -r requirements.txtThe benchmark packages, rounds, array sizes, and numeric type may be specified on the constants at the top of pytest_benchmark/common.py.
Alternatively, they may be specified individually at the top of each test file.
These are the steps to run the benchmarks, and produce the graphs
Run the benchmarks and store the results in results.json
pytest .\pytest_benchmark --benchmark-json=results.jsonTo create graphs and store the timing results after creating the results.json, run:
python graphs.pyTo modify the tests being shown, modify the TESTS list at the top of the graphs.py file.
To modify the labels shown, modify PKG_LABELS
To modify the hardware display, modify HARDWARE
When running with dpnp, set the environment variable DPNP_RAISE_EXCEPION_ON_NUMPY_FALLBACK to 0.