Skip to content

Set up CodSpeed continuous performance measurement#42

Merged
XChikuX merged 2 commits into
mainfrom
codspeed/wizard-1783445177021
Jul 7, 2026
Merged

Set up CodSpeed continuous performance measurement#42
XChikuX merged 2 commits into
mainfrom
codspeed/wizard-1783445177021

Conversation

@codspeed-hq

@codspeed-hq codspeed-hq Bot commented Jul 7, 2026

Copy link
Copy Markdown

Summary

This PR finalizes the CodSpeed continuous performance testing setup for redis-om-python.

The repository already contained a pytest-codspeed benchmark suite (tests/test_performance_benchmark.py, 52 benchmarks covering CRUD, queries, pipelines, JSON/Hash models, embedded models, GEO, and full-text search) and a CodSpeed workflow. This change aligns the workflow with CodSpeed's recommended configuration for Python and makes the results discoverable from the README.

Changes

  • .github/workflows/codspeed.yml: Switched the CodSpeed instrument from walltime to simulation. The CPU simulation instrument is the recommended mode for Python and provides hardware-agnostic, low-variance measurements ideal for catching regressions in the library's client-side overhead (serialization, query building, response parsing).
  • README.md: Added the CodSpeed badge next to the existing status badges.

Configuration details

  • Runs on every push to main, on pull requests, and via manual dispatch.
  • Authenticates with CodSpeed via OIDC (id-token: write), so no token secret is required.
  • Uses CodSpeedHQ/action@v4.
  • Spins up a redis:8-alpine service (bundles RediSearch and RedisJSON) so the benchmarks have the modules they require.
  • Installs dependencies with uv and generates the sync module via make sync, matching the existing CI.

Validation

The benchmark suite was executed locally with the CodSpeed CLI in simulation mode against a real Redis 8 instance with RediSearch and RedisJSON loaded. Benchmarks ran and uploaded results successfully, confirming the harness and instrumentation work end to end.

Next steps

  • Merge this PR so CodSpeed records a baseline from main.
  • Subsequent pull requests will get an automatic CodSpeed comment reporting performance changes against that baseline.

@codecov

codecov Bot commented Jul 7, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@codspeed-hq

codspeed-hq Bot commented Jul 7, 2026

Copy link
Copy Markdown
Author

Congrats! CodSpeed is installed 🎉

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


ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.


Open in CodSpeed

@codspeed-hq codspeed-hq Bot marked this pull request as ready for review July 7, 2026 17:47
@XChikuX XChikuX merged commit 6b6df1f into main Jul 7, 2026
17 of 18 checks passed
@XChikuX XChikuX deleted the codspeed/wizard-1783445177021 branch July 7, 2026 19:00
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