Test perf

From berkcangumusisik/claude-code-practices · View interactive version

Test perf is an AI agent skill from the GitHub repository berkcangumusisik/claude-code-practices. Writes performance/benchmark tests for a function or endpoint

How to use this skill

Skill file

Generate Performance Tests

Target: $ARGUMENTS

  1. Read the target file and understand what to benchmark.
  1. Detect available tools:
cat package.json | grep -E "vitest|jest|benchmark|autocannon|k6"
  1. Write benchmarks that measure:
  1. For HTTP endpoints: generate a load test script (autocannon or k6).
  1. Add a performance budget comment:
// Expected: < 10ms for typical input
// Regression threshold: fail if > 50ms
  1. Place benchmark file in bench/ or __benchmarks__/ following project conventions.
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.