Performance benchmarks¶
Some notable function in Pymech are benchmarked across different versions.
The benchmarks are run using the tool airspeed velocity /
asv.
Note
The results of the benchmark are available here
How to run benchmarks¶
Either install
pymechwith[dev]extras orpip install asv pyperf virtualenv.Change to the directory
docs/asv_benchClose all heavy applications (browsers, video players, chat clients etc.) and tune the system for reducing jitter during benchmarking:
sudo python -m pyperf system tune
Execute the benchmarks
on the current commit with the default Python:
asv run
on the current commit with the PyPy installed using conda
asv run --environment 'conda:*=*pypy'
on all git tags:
./asv_run_all_tags.sh ./asv_run_all_tags.sh --environment 'conda:*=*pypy'
Build HTML of all the results
asv publishView the results
asv preview