← retour aux snippets

httping: mesurer la latence HTTP facilement

Pinger une URL en HTTP/HTTPS et obtenir latence et réponse.

bash network #httping#latency#http

objectif

Comparer la latence réseau+serveur d’un endpoint web.

code minimal

httping -G https://data.pm/ -c 5

utilisation

# SNI/host spécifique
httping -h data.pm -p 443 -l '/path'

variante(s) utile(s)

# afficher code HTTP
httping -s -G https://data.pm/status

notes

  • nécessite httping installé.
  • complément de ping/curl -w.