Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1014 Bytes

File metadata and controls

36 lines (24 loc) · 1014 Bytes

Benchmarks

Setting up environment

    python -m pip install -r requirements.txt

Benchmark parameters

The 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.

Running

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.json

To create graphs and store the timing results after creating the results.json, run:

    python graphs.py

To 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

Notes

When running with dpnp, set the environment variable DPNP_RAISE_EXCEPION_ON_NUMPY_FALLBACK to 0.