Benchmarks#

ContourPy uses asv (airspeed velocity) for benchmarking.

To run the entire benchmarking suite:

$ pip install asv virtualenv
$ cd benchmarks
$ asv run

This will benchmark the latest commit of the main branch. When this is finished you can display the results in a web browser using:

$ asv publish
$ asv preview

For further information see the README.md document in the benchmarks directory.

There follows a summary of key benchmark results taken on a 6-core Intel Core i7-10750H processor using Python 3.10.12 and g++ 11.4.0 on Ubuntu 22.04 for commit 75e78a87.

Note

If you want to reproduce these plots for your own hardware, run the benchmarks locally as described above and then run the plot_benchmarks.py script to extract the benchmark results and generate the plots. Some tweaking of plot parameters may be required to get them looking nice.