npx claudepluginhub codspeedhq/codspeedCodSpeed plugin for Claude Code helping with performance measurement and optimization.
Share bugs, ideas, or general feedback.
curl -fsSL https://codspeed.io/install.sh | bash
[!NOTE] The CodSpeed CLI officially supports Ubuntu 20.04, 22.04, 24.04 and Debian 11, 12. Other Linux distributions may work, but are not officially supported.
First, authenticate to keep your benchmark results linked to your CodSpeed account:
codspeed auth login
The simplest way to get started is to benchmark any executable program directly:
# Benchmark a single command
codspeed exec -- ./my-binary --arg1 value
# Benchmark a script
codspeed exec -- python my_script.py
# Benchmark with specific instrument
codspeed exec --mode walltime -- node app.js
This approach requires no code changes and works with any executable. CodSpeed will measure the performance provide the instrument results.
codspeed runFor more control and integration with your existing benchmark suite, you can use language-specific harnesses. This allows you to:
# Using the Rust harness with criterion
codspeed run cargo codspeed run
# Using the Python harness with pytest
codspeed run pytest ./tests --codspeed
# Using the Node.js harness with vitest
codspeed run pnpm vitest bench
These harnesses provide deeper instrumentation and allow you to write benchmarks using familiar testing frameworks.
CodSpeed provides first-class integrations for multiple languages and frameworks: