Add CodSpeed performance benchmarks#273
Merged
Merged
Conversation
Contributor
Author
Congrats! CodSpeed is installed 🎉
You will start to see performance impacts in the reports once the benchmarks are run from your default branch.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #273 +/- ##
=======================================
Coverage 99.29% 99.29%
=======================================
Files 20 20
Lines 3847 3847
Branches 121 121
=======================================
Hits 3820 3820
Misses 26 26
Partials 1 1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Closed
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.
Summary
This PR integrates CodSpeed for continuous performance monitoring of the
parse_datetimecrate.Changes
Benchmark suite (
benches/parse_datetime.rs): 17 benchmarks usingcodspeed-criterion-compatcovering all major parsing paths:@...)+3 days,1 year 3 months 2 days ago)yesterday,tomorrow,now)Wed Jan 1 00:00:00 1997)1997-01-01 00:00:00 +0000 +1 year)CI workflow (
.github/workflows/codspeed.yml): Runs benchmarks on push tomain, on pull requests, and onworkflow_dispatchusing CodSpeed's simulation mode for reproducible, hardware-independent measurements.Cargo.toml: Added
codspeed-criterion-compatas a dev-dependency and registered the benchmark target.README.md: Added CodSpeed badge.
Next steps
Once merged, CodSpeed will automatically run benchmarks on every PR and report any performance regressions or improvements directly in the PR checks. You can view detailed results and flame graphs on the CodSpeed dashboard.