Skip to content

airspeed-velocity/asv_samples

Repository files navigation

Logo

About

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.

Representative Build Systems

+CAPTION: Where not specified, pyproject.toml is coupled with hatch and hatchling

Branch Configuration CI Status
main Source, not to be run N/A
setup.py-build Setuptools with setup.py Status
pyproject-setuptools-build Setuptools with pyproject.toml Status
memray-plugin memray usage for peak memory Status
decorator-params Decorators for simpler parametrization Status
skip-params Various benchmark / parameter skip methods Status

Note that in all cases users can always modify the build_command variable within their asv configuration file.

Contributing

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.

General Contributions and Fixes

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 <name@example.com> at the end of your commit message for each contributor, ensuring the email is linked to their GitHub accounts, or use Co-authored-by: username <username@users.noreply.github.com>.

Adding a New Build System

To introduce support for a new build system not currently represented in the repository:

  1. Open an Issue: Start by opening an issue to discuss the new build system, providing details and any specific considerations.
  2. 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.
  3. 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.

Documentation

Readme

The readme can be constructed via:

./scripts/org_to_md.sh readme_src.org readme.md

License

MIT.

Logo

The logo was generated via prompts for ChatGPT4.

About

A collection of sample asv benchmarks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published