Skip to content

Add CodSpeed benchmark integration#657

Merged
tarsil merged 1 commit intomainfrom
codspeed-wizard-1772061489617
Feb 25, 2026
Merged

Add CodSpeed benchmark integration#657
tarsil merged 1 commit intomainfrom
codspeed-wizard-1772061489617

Conversation

@codspeed-hq
Copy link
Contributor

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

Summary

  • Added performance benchmarks using pytest-codspeed (v4.3.0) covering core framework operations: application creation, simple and parametrized GET requests, POST requests with Pydantic model validation, and route resolution across multiple registered routes.
  • Added a GitHub Actions workflow (.github/workflows/codspeed.yml) that runs benchmarks on every push to main, on pull requests, and on manual dispatch. Uses OIDC authentication and simulation mode.
  • Added the CodSpeed badge to the README.

What's being measured

Benchmark Description
test_bench_app_creation Cost of instantiating a Ravyn app with multiple routes
test_bench_simple_get_request Full request/response cycle for a plain GET endpoint
test_bench_parametrized_get_request GET request with path parameter extraction
test_bench_post_request_with_validation POST request with Pydantic body validation
test_bench_multiple_routes Route resolution when several routes are registered

Next steps

  • Merge this PR to start collecting baseline performance data on main.
  • Consider adding more granular benchmarks as the framework evolves (middleware chains, dependency injection, serialization, etc.).
  • Visit the CodSpeed dashboard to view results once the first run completes.

@codspeed-hq
Copy link
Contributor Author

codspeed-hq bot commented Feb 25, 2026

Congrats! CodSpeed is installed 🎉

🆕 5 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:24
@tarsil tarsil merged commit 6b365d0 into main Feb 25, 2026
8 checks passed
@tarsil tarsil deleted the codspeed-wizard-1772061489617 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