Advertisement
NubeColectiva

Como Medir el Tiempo de Respuesta de Una API con cURL

Apr 18th, 2024 (edited)
718
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Comando
  2. curl -k -w "@datos.txt" -o /dev/null -s "https://dog.ceo/api/breeds/image/random"  
  3.  
  4. # Archivo test.txt
  5. Tiempo en buscar el nombre del endpoint:  %{time_namelookup}s\n
  6. Tiempo en conectarse a la API:  %{time_connect}s\n
  7. Tiempo que tomo al cliente conectarse a la API:  %{time_appconnect}s\n
  8. Tiempo que toma la API en devolver datos:  %{time_pretransfer}s\n
  9. Tiempo de redirección (Si es que existe):  %{time_redirect}s\n
  10. Tiempo que tomo en iniciar la devolución de datos:  %{time_starttransfer}s\n
  11.                      ----------\n
  12. Tiempo total:  %{time_total}s\n
Tags: api curl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement