Skip to content
Development
Command

/benchmark

Run performance benchmarks against API endpoints.

From plugin
rohitg00-claude-code-toolkit
2.5k199 skills138 agents199 commands
Install
$ npx -y skills add rohitg00/awesome-claude-code-toolkit --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/benchmark

Context preview

What this command does when you run it.

Run performance benchmarks against API endpoints.

Command definition

benchmark.md

/benchmark - Benchmark API Endpoints

Run performance benchmarks against API endpoints.

Steps

1. Ask the user for the target endpoint URL and HTTP method 2. Configure the request: headers, authentication, request body, query parameters 3. Run a warmup phase: 10 requests to prime caches and connections 4. Execute the benchmark with configurable parameters:

  • Concurrent connections (default: 10)
  • Total requests (default: 1000)
  • Duration-based (alternative to request count)

5. Capture per-request metrics: response time, status code, response size 6. Calculate statistics: min, max, mean, median, p95, p99 response times 7. Calculate throughput: requests per second, bytes per second 8. Record error rate and categorize errors by status code 9. Detect performance degradation over the benchmark duration 10. Compare against SLA targets if defined 11. Save raw results in JSON format for further analysis 12. Present a formatted summary with key metrics and pass/fail status

Rules

  • Always include a warmup phase before measuring
  • Use keep-alive connections to simulate realistic client behavior
  • Record and report all HTTP status codes, not just 200s
  • Include connection time separately from response time
  • Do not benchmark production endpoints without explicit permission
  • Run from a network location representative of actual users
  • Report the server and client environment for reproducibility
Read more
Ships withrohitg00-claude-code-toolkit

The most comprehensive toolkit for Claude Code -- 135 agents, 35 curated skills (+400,000 via SkillKit), 42 commands, 176+ plugins, 20 hooks, 15 rules, 7 templates, 15 MCP configs, 26 companion apps, 53 ecosystem entries, and more.

Get the whole plugin