skillfed

codspeed-setup-harness

This skill guides you through configuring benchmarks and integrating CodSpeed into your project. It covers language-specific harnesses (divan, criterion, pytest-benchmark, vitest, go test, Google Benchmark) and a universal exec mode for any language, helping you identify performance-critical code and establish repeatable performance tracking.

CodSpeed Setup Harness helps you configure benchmarks and performance tracking for Rust, Python, Node.js, Go, and C/C++ projects.

AI-generated summary based on this skill's SKILL.md

235 26 Apache-2.0 updated by CodSpeedHQ

Install

CodSpeedHQ/codspeed/codspeed-setup-harness · repository language: Rust

CLI (skillfed)coming soon
git clone https://github.com/CodSpeedHQ/codspeed
cp -r codspeed/skills/codspeed-setup-harness ~/.claude/skills/codspeed-setup-harness

Frequently asked questions

AI-generated answers based on this skill's SKILL.md and metadata

How do I set up performance benchmarks with codspeed-setup-harness?

codspeed-setup-harness guides you through configuring benchmarks and integrating CodSpeed into your project. It covers language-specific harnesses including divan for Rust, criterion, pytest-benchmark for Python, vitest for Node.js, go test for Go, and Google Benchmark for C++. The skill also supports a universal exec mode for any language, helping you identify performance-critical code and establish repeatable performance tracking.

What language-specific benchmark frameworks does codspeed-setup-harness support?

codspeed-setup-harness supports multiple language-specific frameworks: divan and criterion for Rust, pytest-benchmark for Python, vitest for Node.js, go test for Go, and Google Benchmark for C++. Additionally, codspeed-setup-harness provides a universal exec mode that works with any language, giving you flexibility to benchmark code regardless of your tech stack.

Can I configure codspeed.yml with codspeed-setup-harness?

Yes, codspeed-setup-harness helps you configure codspeed.yml to set up your benchmarking environment. The skill guides configuration for performance monitoring and CI integration, allowing you to establish baseline metrics for code optimization and measure code execution speed across your project.

How does codspeed-setup-harness help measure code performance?

codspeed-setup-harness enables you to create performance tests that measure code execution speed and establish baseline metrics for optimization. It integrates benchmarking frameworks into your CI pipeline, providing repeatable performance tracking to identify performance-critical code sections and monitor improvements over time.

What is the universal exec mode in codspeed-setup-harness?

codspeed-setup-harness includes a universal exec mode that works with any programming language or custom benchmark tool. This mode complements language-specific harnesses, allowing you to benchmark code in languages not covered by dedicated framework integrations while maintaining consistent performance tracking.

Can codspeed-setup-harness integrate benchmarking into my CI pipeline?

Yes, codspeed-setup-harness supports configuring performance monitoring and CI integration. It helps you add performance tests to your continuous integration workflow, enabling automated benchmark execution and tracking performance changes across commits and deployments.

SKILL.md

rendered from the published skill — quoted content, verbatim

Setup Harness

You are a performance engineer helping set up benchmarks and CodSpeed integration for a project. Your goal is to create useful, representative benchmarks and wire them up so CodSpeed can measure and track performance.

Step 1: Analyze the project

Before writing any benchmark code, understand what you're working with:

  1. Detect the language and build system: Look at the project structure, package files (Cargo.toml, package.json, pyproject.toml, go.mod, CMakeLists.txt), and source files.

  2. Identify existing benchmarks: Check for benchmark files,

(truncated - see the full file via the links below)

Read as markdown · JSON record · Browse the source repository

File tree — 1 file
skills/codspeed-setup-harness/SKILL.md

Related skills

Tags

performance-measurement benchmark-framework ci-integration profiling-tools code-optimization multi-language-support flamegraph-analysis deterministic-testing harness-setup workload-simulation