ab -n 100 -c 10 -H 'Authorization: Bearer $API_TOKEN' http://localhost:3000/

Category: Web App Development

ab -n 100 -c 10 -H 'Authorization: Bearer $API_TOKEN' http://localhost:3000/

Load test an authenticated endpoint

Sends 100 requests with a bearer token header on every one, exercising routes that require login. The -H flag repeats for additional headers. Watch the non-2xx count in the report to confirm auth is not failing under load.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.