Skip to content
Back to skills

Benchmark Design

ASecurity

Design trustworthy performance benchmarks with a precise question, representative workload, controlled environment, warmup and sampling discipline, statistical comparison, correctness checks, and regression thresholds.

  • 51 stars
  • 0 votes
  • 1 copy
  • 6 views
  • Added September 11, 2026
ai-agentsrustperformance

Security analysis

A100/100

Scanned November 25, 2026

npx -y skills add Dadmin88/hermes-profile-packs --skill benchmark-design --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Benchmark Design?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Benchmark Design
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/dadmin88-benchmark-design/badge)](https://www.skillsdirectory.com/skills/dadmin88-benchmark-design)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: benchmark-design
description: Design trustworthy performance benchmarks with a precise question, representative workload, controlled environment, warmup and sampling discipline, statistical comparison, correctness checks, and regression thresholds.
---
# Benchmark Design

Use when performance changes need repeatable evidence rather than one-off timing or anecdotal profiling.

## Procedure
1. Define the performance question and metric: operation latency, throughput, allocations, startup/build time, frame time, memory, CPU, I/O, or another property tied to a real requirement.
2. Choose representative inputs and workload sizes, including multiple scale points when complexity or data distribution can change behavior.
3. Keep correctness assertions in or beside the benchmark so an optimization cannot “win” by doing less work or returning a different result.
4. Control the environment variables that materially affect results: build mode, runtime/compiler version, hardware, power state, background load, CPU affinity when justified, dataset/cache state, network/dependencies, and configuration.
5. Define warmup and steady-state behavior appropriate to JIT, caches, connection pools, filesystem/page cache, shaders, or other runtime mechanisms. Measure cold behavior separately when it is itself the target.
6. Run enough samples/iterations to characterize variance without pretending highly correlated micro-iterations are independent evidence.
7. Record distributions and uncertainty appropriate to the benchmark rather than comparing a single minimum or average blindly.
8. Compare candidates under the same conditions and vary order or isolate runs when thermal/cache/history effects could bias results.
9. Set regression thresholds based on meaningful user/system impact and normal benchmark noise, not an arbitrary zero-tolerance percentage.
10. Store benchmark code, inputs, environment metadata, and result format so another engineer or CI system can reproduce the comparison.

## Decision rules
- Microbenchmarks prove microbehavior; do not generalize them to end-to-end system performance without a model connecting the two.
- A benchmark that is too noisy to distinguish the claimed improvement needs better design before stronger conclusions.
- Production telemetry can validate external relevance, while controlled benchmarks isolate causes; they complement each other.

## Quality gate
The benchmark is trustworthy when it answers a precise performance question, executes correct representative work, controls or records material environmental factors, captures enough samples to interpret variance, compares candidates fairly, and can be rerun by another engineer to reproduce the claimed result.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.