Skip to content

Add CodSpeed performance benchmarks#273

Merged
sylvestre merged 1 commit into
mainfrom
codspeed-wizard-1774993248081
Mar 31, 2026
Merged

Add CodSpeed performance benchmarks#273
sylvestre merged 1 commit into
mainfrom
codspeed-wizard-1774993248081

Conversation

@codspeed-hq
Copy link
Copy Markdown
Contributor

@codspeed-hq codspeed-hq Bot commented Mar 31, 2026

Summary

This PR integrates CodSpeed for continuous performance monitoring of the parse_datetime crate.

Changes

  • Benchmark suite (benches/parse_datetime.rs): 17 benchmarks using codspeed-criterion-compat covering all major parsing paths:

    • ISO 8601 datetime (with and without T separator)
    • Date-only formats (ISO and slash notation)
    • Epoch timestamps (@...)
    • Relative time expressions (+3 days, 1 year 3 months 2 days ago)
    • Keyword-based parsing (yesterday, tomorrow, now)
    • Weekday parsing
    • Timezone offsets and named timezones
    • ctime format (Wed Jan 1 00:00:00 1997)
    • Datetime with delta (1997-01-01 00:00:00 +0000 +1 year)
    • Invalid input (error path)
  • CI workflow (.github/workflows/codspeed.yml): Runs benchmarks on push to main, on pull requests, and on workflow_dispatch using CodSpeed's simulation mode for reproducible, hardware-independent measurements.

  • Cargo.toml: Added codspeed-criterion-compat as 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.

@codspeed-hq
Copy link
Copy Markdown
Contributor Author

codspeed-hq Bot commented Mar 31, 2026

Congrats! CodSpeed is installed 🎉

🆕 17 new benchmarks were detected.

You will start to see performance impacts in the reports once the benchmarks are run from your default branch.

Detected benchmarks


Open in CodSpeed

@codspeed-hq codspeed-hq Bot marked this pull request as ready for review March 31, 2026 21:46
@sylvestre sylvestre merged commit 30ea391 into main Mar 31, 2026
30 of 36 checks passed
@sylvestre sylvestre deleted the codspeed-wizard-1774993248081 branch March 31, 2026 21:51
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 31, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.29%. Comparing base (ee4971c) to head (70a08a8).
⚠️ Report is 1 commits behind head on main.

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           
Flag Coverage Δ
macos_latest 99.29% <ø> (ø)
ubuntu_latest 99.29% <ø> (ø)
windows_latest 14.21% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cakebaker cakebaker mentioned this pull request Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant