aj-geddes avatar

Performance Testing

This helps you design and run performance tests to measure response times, throughput, and resource usage under load. It covers k6 for API load testing, JMeter, pytest-benchmark for Python, JMH for Java, and database query analysis. You get working examples with realistic test stages, custom metrics, and threshold configurations. The best practices are solid: use percentiles over averages, test with realistic data volumes, and always warm up before measuring. It's opinionated about testing in production-like environments and catching N+1 queries early. Good for validating SLAs, finding bottlenecks before they hit production, or comparing performance before and after optimizations.

skills.sh installs
609
GitHub stars
379
last updated
Aug 21, 2026

Install

$ npx -y skills add aj-geddes/useful-ai-prompts --skill performance-testing --agent claude-code

Installs into .claude/skills of the current project.

Files

Performance Testing

Table of Contents

Overview

Performance testing measures how systems behave under various load conditions, including response times, throughput, resource utilization, and scalability. It helps identify bottlenecks, validate performance requirements, and ensure systems can handle expected loads.

When to Use

  • Validating response time requirements
  • Measuring API throughput and latency
  • Testing database query performance
  • Identifying performance bottlenecks
  • Comparing algorithm efficiency
  • Benchmarking before/after optimizations
  • Validating caching effectiveness
  • Testing concurrent user capacity

Quick Start

Minimal working example:

// load-test.js
import http from "k6/http";
import { check, sleep } from "k6";
import { Rate, Trend } from "k6/metrics";

// Custom metrics
const errorRate = new Rate("errors");
const orderDuration = new Trend("order_duration");

Sponsors

Details

Repository
github.com/aj-geddes/useful-ai-prompts
Categories
Testing & QA, AI & Agent Building, Debugging, Design & UI/UX
First seen
Jun 3, 2026

More from aj-geddes/useful-ai-prompts

All 258
1proffesor-for-testing avatarapi-testing-patternsproffesor-for-testing/agentic-qeComprehensive API testing patterns including contract testing, REST/GraphQL testing, and integration testing. Use when testing APIs or designing API test strate609skills.sh installs
2aj-geddes avatarsecurity-testingaj-geddes/useful-ai-promptsIdentify security vulnerabilities through SAST, DAST, penetration testing, and dependency scanning. Use for security test, vulnerability scanning, OWASP, SQL in607skills.sh installs
3encoredev avatarencore-go-testingencoredev/skillsWrite or run automated tests for Encore Go code with `encore test` and the standard library `testing` package. Covers isolated per-test databases, calling handl598skills.sh installs
4aj-geddes avatarintegration-testingaj-geddes/useful-ai-promptsDesign and implement integration tests that verify component interactions, API endpoints, database operations, and external service communication. Use for integ557skills.sh installs
5microsoft avatarplaywright-climicrosoft/playwrightAutomate browser interactions, test web pages and work with Playwright tests.540skills.sh installs
6jezweb avatarplaywright-localjezweb/claude-skillsBuild browser automation and web scraping with Playwright on your local machine. Prevents 10 documented errors including CI timeout hangs, extension testing fai505skills.sh installs