Skip to content

Add CodSpeed continuous performance tracking#62

Merged
tarsil merged 1 commit into
mainfrom
codspeed-wizard-1772061452727
Feb 25, 2026
Merged

Add CodSpeed continuous performance tracking#62
tarsil merged 1 commit into
mainfrom
codspeed-wizard-1772061452727

Conversation

@codspeed-hq

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

Copy link
Copy Markdown
Contributor

Summary

  • Added pytest-codspeed (v4.3.0+) as a testing dependency to enable performance benchmarking with CodSpeed's CPU simulation instrument.
  • Created a benchmark suite in tests/benchmarks/test_benchmarks.py with 10 benchmarks covering:
    • Encoder performance: JSON serialization/deserialization of dataclasses, lists, and structure molding via apply_structure
    • Command registration: Measuring overhead of registering simple and complex (multi-option) commands
    • Command invocation: End-to-end invocation of commands with positional arguments, options, and JSON parameter deserialization
    • Group operations: Group creation and command attachment
  • Added a GitHub Actions workflow (.github/workflows/codspeed.yml) that runs benchmarks on pushes to main, pull requests, and manual dispatches, using OIDC authentication and simulation mode.
  • Added the CodSpeed badge to the README.

Next steps

  • Merge this PR to establish the performance baseline on main.
  • Future PRs will automatically receive performance reports comparing against that baseline.
  • Consider adding more benchmarks as the project evolves (e.g., middleware chains, async commands, state management).

@codspeed-hq

codspeed-hq Bot commented Feb 25, 2026

Copy link
Copy Markdown
Contributor Author

Congrats! CodSpeed is installed 🎉

🆕 10 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:25
@tarsil tarsil merged commit e3a38a4 into main Feb 25, 2026
2 of 12 checks passed
@tarsil tarsil deleted the codspeed-wizard-1772061452727 branch February 25, 2026 23:46
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