Prompt
How do I check response time and error rate during load testing
Latest observation
Oct 20, 2026
OpenAI APIWeb search: off
To check response time and error rate during load testing, you usually collect metrics from both the load generator and the application/infra.
1) Response time
Track these common latency metrics:
- Average response time: overall mean, but can hide spikes
- Median (p50): typical user experience
- p90 / p95 / p99: more useful for load testing because they show tail latency
- Min / max: helps spot outliers
How to measure
Most load testing tools report this automatically:
- JMeter: Summary Report, Aggregate Report, View Results Tree
- k6: built-in metrics like
http_req_duration,http_req_waiting - Locust: response time stats per endpoint
- LoadRunner/Gatling: built-in percentile reports
What to watch
- Response time rising as concurrency increases
- Sudden jumps at a certain request rate
- Tail latency (p95/p99) increasing faster than average
2) Error rate
Error rate is usually:
[ \text{Error Rate} = \frac{\text{Number of failed requests}}{\text{Total requests}} \times 100 ]
Count as errors:
- HTTP 4xx / 5xx responses
- Timeouts
- Connection failures
- Assertion failures in the test script
- Business logic failures if you validate response content
Example
If you sent 10,000 requests and 250 failed:
[ \frac{250}{10000} \times 100 = 2.5% ]
3) Where to look
In the load test tool
Check:
- total requests
- failed requests
- status code breakdown
- latency percentiles
- requests per second
In application monitoring
Use APM/monitoring tools like:
- Grafana + Prometheus
- Datadog
- New Relic
- Dynatrace
- CloudWatch / Azure Monitor / Stackdriver
Watch:
- server response times
- 5xx rates
- CPU, memory, GC, disk I/O
- DB latency
- queue length
- saturation indicators
4) Recommended practice
During a load test, record:
- p95 response time
- p99 response time
- error rate
- throughput (RPS)
- resource usage
A good result is not just “low average latency,” but:
- stable latency under expected load
- error rate near 0%
- no resource saturation
5) Example with k6
import http from 'k6/http';
import { check } from 'k6';
export const options = {
vus: 50,
duration: '1m',
};
export default function () {
let res = http.get('https://example.com');
check(res, {
'status is 200': (r) => r.status === 200,
});
}
k6 will automatically show:
http_req_durationhttp_req_failed- percentiles and trends
If you want, I can show you how to measure these in a specific tool like JMeter, k6, Locust, or Gatling.