Apache Benchmark

Example with JWT with 2 concurrent requests with a total of 100 requests

ab -n100 -c2 -H "Accept: application/json" -H "Authorization: Bearer <valid-jwt-token>" -H "Cache-Control: no-cache" -H "Content-Type: application/json" "https://example.com/api/test"

more info


Example with JWT with 100 requests per second

jq -ncM '{method: "GET", url: "https://example.com/api/test" | @base64, header: {"Authorization": ["Bearer <valid-jwt-token>"]}}' |
  vegeta attack -format=json -rate=100 | vegeta encode

more info


Example with 1200 requests

hey -n 1200 https://example.com/api/test

more info