Add CodSpeed performance benchmarks and CI workflow#141
Merged
Conversation
Contributor
Author
Owner
ERROR: test_benchmark (unittest.loader._FailedTest)ImportError: Failed to import test module: test_benchmark |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR integrates CodSpeed for continuous performance tracking of python-xxhash.
Changes
Benchmark suite (
tests/test_benchmark.py)16 benchmarks using
pytest-codspeed, modeled after the existingbench.shpatterns. Coverage includes:xxh32_intdigest,xxh64_intdigest,xxh3_64_intdigest,xxh3_128_intdigestxxh32,xxh64,xxh3_64,xxh3_128(construct, update, intdigest)CI workflow (
.github/workflows/codspeed.yml)A GitHub Actions workflow that runs benchmarks on every push to
master, on pull requests, and supportsworkflow_dispatchfor CodSpeed backtesting. Uses OIDC authentication and simulation mode for reproducible measurements.README badge
Added a CodSpeed badge to the README alongside existing badges.
Note on runners
This repository belongs to a personal GitHub account, so the workflow uses standard
ubuntu-latestrunners instead of CodSpeed's dedicatedcodspeed-macrorunners (which are only available to organization repositories). This means walltime measurements in CI will have higher variance than with bare-metal runners. Since this setup uses simulation mode, this is not a concern -- simulation measurements are deterministic regardless of the runner. See the walltime docs for more details.Next steps
master.