Skip to content

Add CodSpeed benchmark suite#952

Open
Kludex wants to merge 10 commits into
mainfrom
add-codspeed-benchmarks
Open

Add CodSpeed benchmark suite#952
Kludex wants to merge 10 commits into
mainfrom
add-codspeed-benchmarks

Conversation

@Kludex
Copy link
Copy Markdown
Member

@Kludex Kludex commented May 17, 2026

Summary

  • Adds a CodSpeed benchmark suite under tests/benchmarks/ covering URL parsing/building, headers, request/response construction, gzip decoding, and full Client roundtrips via MockTransport (23 benchmarks total).
  • Mirrors the layout and workflow used in encode/uvicorn: pytest-based benchmarks with pytest-codspeed, run in instrumentation mode via CodSpeedHQ/action@v4.
  • Wires up .github/workflows/benchmark.yml and registers the benchmark marker; coverage is configured to ignore tests/benchmarks/*.

Test plan

  • CI: CodSpeed workflow runs and reports results on the PR
  • uv run pytest tests/benchmarks/ passes locally (smoke)
  • uv run pytest tests/benchmarks/ --codspeed runs locally without errors
  • uv run ruff check tests/benchmarks/ and uv run mypy tests/benchmarks/ are clean

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

Comment thread .github/workflows/benchmark.yml Fixed
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 17, 2026

Congrats! CodSpeed is installed 🎉

🆕 7 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

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: cc4c1bd160

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/benchmark.yml Outdated
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.

2 participants