Skip to content
Back to skills

Test Perf

ASecurity

Writes performance/benchmark tests for a function or endpoint

  • 10 stars
  • 0 votes
  • 0 copies
  • 8 views
  • Added May 27, 2026
data-aibashperformance

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add berkcangumusisik/claude-code-practices --skill test-perf --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Test Perf?

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

Security grade badge for Test Perf
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/berkcangumusisik-test-perf/badge)](https://www.skillsdirectory.com/skills/berkcangumusisik-test-perf)

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: test-perf
description: Writes performance/benchmark tests for a function or endpoint
argument-hint: <file-path-or-function>
user-invocable: true
allowed-tools: Read Glob Edit Bash
effort: medium
---

## Generate Performance Tests

Target: **$ARGUMENTS**

1. Read the target file and understand what to benchmark.

2. Detect available tools:
```bash
cat package.json | grep -E "vitest|jest|benchmark|autocannon|k6"
```

3. Write benchmarks that measure:
   - Execution time under normal load
   - Memory allocation
   - Degradation under large inputs (10x, 100x, 1000x)
   - Comparison: current implementation vs a naive baseline

4. For HTTP endpoints: generate a load test script (autocannon or k6).

5. Add a performance budget comment:
```js
// Expected: < 10ms for typical input
// Regression threshold: fail if > 50ms
```

6. Place benchmark file in `bench/` or `__benchmarks__/` following project conventions.

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.

Comments

Loading comments…