This repository repository serves as a comprehensive showcase for integrating ASV (Air Speed Velocity) with a wide array of Python project configurations, including various build systems and advanced benchmarking features like custom parameterizations and ASV plugins. This initiative aims to benchmark Python code performance across diverse setups, offering insights into the impacts of different build systems and ASV's extensible features on performance metrics. The repository is structured with dedicated branches for each build system and feature demonstration.
Prepare an environment for asv
:
git clone https://github.com/airspeed-velocity/asv_samples/
cd asv_samples
micromamba create -p $(pwd)/.tmp -c conda-forge python pip "libmambapy<2.0" conda-build
micromamba activate -p $(pwd)/.tmp
pip install asv
Checkout any of the branches, prepare them using the gen_asv_conf.py
script, and run asv
:
git checkout memray-plugin
python scripts/gen_asv_conf.py asv.conf.base.json
asv run
+CAPTION: Where not specified, pyproject.toml
is coupled with hatch
and hatchling
Note that in all cases users can always modify the build_command
variable within their asv
configuration file.
Given the exploding number of build systems and varying configurations, this repository is necessarily a community effort. We value collaborative efforts and encourage the use of co-commits for joint contributions.
The default branch serves as a common staging area (e.g. common
benchmarks, documentation) for every demonstration branch. Changes which
ought to be propagated to every other branch should be directed towards
main
.
For general enhancements or fixes to existing branches:
- Fork the repository, apply your changes, and submit a pull request.
- For collaborative work, please include co-commits. Add
Co-authored-by: name <[email protected]>
at the end of your commit message for each contributor, ensuring the email is linked to their GitHub accounts, or useCo-authored-by: username <[email protected]>
.
To introduce support for a new build system not currently represented in the repository:
- Open an Issue: Start by opening an issue to discuss the new build system, providing details and any specific considerations.
- Branch Creation: Once the issue is approved, a new branch
following the naming convention
<buildsystem>-build
(e.g.,poetry-build
,pdm-build
) will be created off the default branch. - Submit a Pull Request: Fork the repository, implement your changes in the corresponding branch, and then submit a pull request targeting the newly created branch for the build system.
Remember to follow the collaborative work guidelines laid out in the previous section.
The readme
can be constructed via:
./scripts/org_to_md.sh readme_src.org readme.md
MIT.
The logo was generated via prompts for ChatGPT4.