Skip to content

Instantly share code, notes, and snippets.

@rdeavila
Created September 20, 2017 15:03
Show Gist options
  • Save rdeavila/3317b33be61c89b05e16ec6d443652cc to your computer and use it in GitHub Desktop.
Save rdeavila/3317b33be61c89b05e16ec6d443652cc to your computer and use it in GitHub Desktop.
#!/bin/bash
CAMPANHA_ID="1"
ENTREGADOR_ID="teste_benchmark"
PRIVATE_TOKEN="wZrSb..."
curl \
-w "@time_curl.txt" \
-X GET \
-s "http://127.0.0.1:3000/i/v2/campanhas/$CAMPANHA_ID/mensagens?entregador_id=$ENTREGADOR_ID" \
-H "content-type: application/json" \
-H "private-token: $PRIVATE_TOKEN"
\n\n
dns_lookup.................%{time_namelookup}\n
tcp_connect................%{time_connect}\n
tcp_ssl_connect............%{time_appconnect}\n
pre_transfer_negotiations..%{time_pretransfer}\n
redirects..................%{time_redirect}\n
time_to_first_byte.........%{time_starttransfer}\n
-----------------------------------\n
total......................%{time_total}\n
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment