Skip to content

Add CodSpeed performance benchmarks and CI workflow#2

Closed
codspeed-hq[bot] wants to merge 1 commit into
mainfrom
codspeed-wizard-1774531128507
Closed

Add CodSpeed performance benchmarks and CI workflow#2
codspeed-hq[bot] wants to merge 1 commit into
mainfrom
codspeed-wizard-1774531128507

Conversation

@codspeed-hq

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

Copy link
Copy Markdown

Summary

This PR integrates CodSpeed for continuous performance tracking of hpke-http's cryptographic operations.

What's included

  • 13 benchmarks covering the performance-critical paths:
    • HPKE sender/recipient context setup (key exchange + key schedule)
    • Single-shot seal_psk / open_psk with small JSON and 4 KB payloads
    • Context-based seal/open (amortised key exchange cost)
    • Chunk encryption/decryption in both SSE and raw binary formats (64 KB)
    • Gzip compression/decompression at 4 KB and 64 KB sizes
  • GitHub Actions workflow (.github/workflows/codspeed.yml) running benchmarks in simulation mode on push to main/develop and on PRs to main
  • CodSpeed badge added to the README
  • pytest-codspeed added as a dev dependency

How it works

CodSpeed's simulation mode uses CPU instruction counting for deterministic, low-variance measurements. Every PR will get a performance report comparing against the base branch, catching regressions before they land.

Next steps

  • Merge this PR and run the CodSpeed workflow on main to establish baseline measurements
  • Future PRs will automatically receive performance comparisons in the PR checks
  • Visit the CodSpeed dashboard to explore results and flamegraphs

@codspeed-hq codspeed-hq Bot force-pushed the codspeed-wizard-1774531128507 branch from faec109 to 77ff8eb Compare March 26, 2026 13:24
@codspeed-hq

codspeed-hq Bot commented Mar 26, 2026

Copy link
Copy Markdown
Author

Congrats! CodSpeed is installed 🎉

🆕 13 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 26, 2026 13:25
@clemlesne clemlesne closed this Mar 26, 2026
@clemlesne clemlesne deleted the codspeed-wizard-1774531128507 branch March 26, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant