Add two benchmark files: bench_diagrams.py for benchmarking functions in diagrams.py and
bench_calculations.py for benchmarking
functions in calculations.py
Add requirements_dev.txt for easy installation of required packages for
asv benchmarking and testing with
pytest. Will eventually be used in CI.
Related to #108
Description
As discussed in #108, we are adding some benchmarks for easy performance comparison between commits.
To run the benchmarks locally, simply run asv run from the kda/benchmarks directory. Running on this commit gave me the following results:
The 10 benchmarks are parameterized over different graphs starting from the simple 3-state model to the 8-state EmrE model to give a reasonable range for comparison.
Changes
Add
asv
configuration fileAdd two benchmark files:
bench_diagrams.py
for benchmarking functions indiagrams.py
andbench_calculations.py
for benchmarking functions incalculations.py
Add
requirements_dev.txt
for easy installation of required packages forasv
benchmarking and testing withpytest
. Will eventually be used in CI.Related to #108
Description
As discussed in #108, we are adding some benchmarks for easy performance comparison between commits.
To run the benchmarks locally, simply run
asv run
from thekda/benchmarks
directory. Running on this commit gave me the following results:Output for local run
``` $ asv run Couldn't load asv.plugins._mamba_helpers because No module named 'conda' ▒ Creating environments ▒ Discovering benchmarks ▒▒ Uninstalling from conda-py3.9-pip+networkx-pip+numpy-pip+pytest-pip+sympy ▒▒ Building 254155f8The 10 benchmarks are parameterized over different graphs starting from the simple 3-state model to the 8-state EmrE model to give a reasonable range for comparison.