Performance Benchmarking
Overview
This skill defines how to systematically measure and track system performance. Without benchmarks, performance degradation goes unnoticed until it impacts users. Regular benchmarking ensures changes improve rather than degrade performance.
When to Use
- Before launching any user-facing feature or service
- After making changes that could affect performance (algorithms, data access, queries)
- When users report slowness or degraded responsiveness
- Before committing to a technology or approach with performance implications
- As part of regular system health monitoring
- Don't use when: Performance is clearly not a concern (static content, one-time operations)
Core Procedures
Step 1: Define Metrics
Select relevant metrics for what's being measured:
- Response Time: p50, p90, p95, p99 latencies
- Throughput: Requests/operations per second
- Resource Usage: CPU, memory, disk I/O, network, database connections
- Error Rate: Percentage of failed operations
- Scalability: How metrics change as load increases
Step 2: Establish Baseline
- Define test scenario (load, data set, environment)
- Run measurement under normal conditions
- Record results as baseline
- Ensure environment is stable and representative of production
- Document test conditions for reproducibility
Step 3: Execute Benchmark
- Run test under defined conditions (same as baseline)
- Run multiple iterations (minimum 5) for statistical significance
- Record all metrics and environmental conditions
- Save raw results for analysis
Step 4: Compare and Analyze
- Did performance improve, degrade, or stay flat vs baseline?
- Are any metrics outside acceptable thresholds?
- If performance changed, identify WHAT changed (not just THAT it changed)
- For degradation: is the regression acceptable for the improvement gained?
Step 5: Set Thresholds
Define acceptable ranges for each metric:
PERFORMANCE THRESHOLD
=====================
Metric: [response time, throughput, etc.]
Baseline: [typical value]
Warning: [degradation level that triggers investigation]
Critical: [degradation level that triggers rollback]
Target: [improvement goal]
Quality Checklist
Error Handling
- Error: Performance degrades significantly after change
Response: Do NOT deploy, diagnose root cause, fix or revert
- Error: Results are inconsistent between runs
Response: Investigate environmental factors, isolate variable, stabilize test conditions
- Error: No baseline data available
Response: Measure current state as baseline, cannot assess change impact until next measurement
Cross-Team Integration
Related Skills: testing-strategy, edge-case-analysis, incident-response, continuous-improvement
Used By: Performance testing engineers, developers, infrastructure teams, load testers, profiler agents
1---2name: performance-benchmarking3description: >4 Use when evaluating, measuring, or comparing the performance of systems, functions,5 or services. This skill provides a framework for establishing baselines, measuring6 performance, and validating that changes meet performance requirements.7metadata:8 source: https://skillmd.com/skills/construct-ai-primary/performance-benchmarking9---1011# Performance Benchmarking1213## Overview14This skill defines how to systematically measure and track system performance. Without benchmarks, performance degradation goes unnoticed until it impacts users. Regular benchmarking ensures changes improve rather than degrade performance.1516## When to Use17- Before launching any user-facing feature or service18- After making changes that could affect performance (algorithms, data access, queries)19- When users report slowness or degraded responsiveness20- Before committing to a technology or approach with performance implications21- As part of regular system health monitoring22- **Don't use when:** Performance is clearly not a concern (static content, one-time operations)2324## Core Procedures2526### Step 1: Define Metrics27Select relevant metrics for what's being measured:28- **Response Time:** p50, p90, p95, p99 latencies29- **Throughput:** Requests/operations per second30- **Resource Usage:** CPU, memory, disk I/O, network, database connections31- **Error Rate:** Percentage of failed operations32- **Scalability:** How metrics change as load increases3334### Step 2: Establish Baseline351. Define test scenario (load, data set, environment)362. Run measurement under normal conditions373. Record results as baseline384. Ensure environment is stable and representative of production395. Document test conditions for reproducibility4041### Step 3: Execute Benchmark421. Run test under defined conditions (same as baseline)432. Run multiple iterations (minimum 5) for statistical significance443. Record all metrics and environmental conditions454. Save raw results for analysis4647### Step 4: Compare and Analyze48- Did performance improve, degrade, or stay flat vs baseline?49- Are any metrics outside acceptable thresholds?50- If performance changed, identify WHAT changed (not just THAT it changed)51- For degradation: is the regression acceptable for the improvement gained?5253### Step 5: Set Thresholds54Define acceptable ranges for each metric:55```56PERFORMANCE THRESHOLD57=====================58Metric: [response time, throughput, etc.]59Baseline: [typical value]60Warning: [degradation level that triggers investigation]61Critical: [degradation level that triggers rollback]62Target: [improvement goal]63```6465## Quality Checklist66- [ ] Relevant metrics selected for system type67- [ ] Baseline established with documented conditions68- [ ] Tests run multiple times for statistical reliability69- [ ] Results compared against baseline70- [ ] Thresholds defined for ongoing monitoring71- [ ] Raw results saved for trend analysis7273## Error Handling74- **Error:** Performance degrades significantly after change75 **Response:** Do NOT deploy, diagnose root cause, fix or revert76- **Error:** Results are inconsistent between runs77 **Response:** Investigate environmental factors, isolate variable, stabilize test conditions78- **Error:** No baseline data available79 **Response:** Measure current state as baseline, cannot assess change impact until next measurement8081## Cross-Team Integration82**Related Skills:** testing-strategy, edge-case-analysis, incident-response, continuous-improvement83**Used By:** Performance testing engineers, developers, infrastructure teams, load testers, profiler agents