benchmark(1/0)
Benchmark your web service with ab
Time to test your web service with more than a single request? Let’s use ab! Here’s a silly example. ab -n 1000 -c 100 localhost:3000/healthcheck This runs 1,000 requests at a rate of approx. 100 at a time. It runs on a single thread so it’s not technically 100 at the same time, but rather in bursts of 100. You’ll get a nifty breakdown of requests success/failure and the distribution of response times in milliseconds.…