Skip to content

Add CodSpeed performance benchmarks#98

Merged
tarsil merged 2 commits intomainfrom
codspeed-wizard-1772061468044
Feb 25, 2026
Merged

Add CodSpeed performance benchmarks#98
tarsil merged 2 commits intomainfrom
codspeed-wizard-1772061468044

Conversation

@codspeed-hq
Copy link
Contributor

@codspeed-hq codspeed-hq bot commented Feb 25, 2026

Summary

  • Integrated CodSpeed for continuous performance monitoring
  • Added pytest-codspeed (v4.3.0) to test dependencies
  • Created 17 benchmarks across 2 test files covering core operations:
    • Expression compilation: equality, regex, startswith, compile_many, unpack
    • Q operator construction: equality/comparison operators, in/not_in, logical operators (and/or), ordering
    • Document model operations: EmbeddedDocument instantiation and serialization (model_dump, model_dump_json), nested document creation, Movie model instantiation and serialization
  • Added GitHub Actions workflow (.github/workflows/codspeed.yml) with:
    • OIDC authentication (no token needed)
    • CPU simulation mode for deterministic measurements
    • Runs on push to main, pull requests, and manual dispatch
  • Added CodSpeed badge to README

Next steps

  • Review benchmark results on pull requests via CodSpeed's automated comments
  • Add more benchmarks as new features are developed (e.g., database CRUD operations with MongoDB service)
  • Consider enabling performance checks to prevent regressions on merge

@codspeed-hq
Copy link
Contributor Author

codspeed-hq bot commented Feb 25, 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 February 25, 2026 23:29
@tarsil tarsil merged commit fe20b6d into main Feb 25, 2026
12 checks passed
@tarsil tarsil deleted the codspeed-wizard-1772061468044 branch February 25, 2026 23:37
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