ab -k -n 5000 -c 100 http://localhost:3000/

Category: Web App Development

ab -k -n 5000 -c 100 http://localhost:3000/

Load test with keep-alive connections

Runs 5000 requests at 100 concurrency while reusing connections with the -k flag. Keep-alive models real browser behavior and shows higher throughput than fresh connections per request. Compare both runs to see connection setup overhead.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.