Skip to content

Instantly share code, notes, and snippets.

View afzaale01's full-sized avatar
🎯
Focusing

Muhammad Afzaal afzaale01

🎯
Focusing
View GitHub Profile
@afzaale01
afzaale01 / cmd.sh
Created August 1, 2022 05:53 — forked from kuntalchandra/cmd.sh
Load testing example using Apache Bench (ab) to POST JSON to an API
# Shoot off 300 requests at the server, with a concurrency level of 10, to test the number of requests it can handle per second
# -p POST
# -H Authentication headers
# -T Content-Type
# -c Concurrent clients
# -n Number of requests to run
# -l Accept variable document length
# -k Connection keep-alive
# -v Verbosity level