2024-05-16
https://dev.classmethod.jp/articles/curl-benchmark/
手軽にできて便利なのでメモ。
コマンドメモ ⬇️
URL="https://example.com/" # ここを変更する
curl "${URL}" -o /dev/null -s -w @- << EOS
remote_ip : %{remote_ip}\n
http_code : %{http_code}\n
size_download : %{size_download} bytes\n
size_upload : %{size_upload} bytes\n
speed_download : %{speed_download} bytes/sec\n
speed_upload : %{speed_upload} bytes/sec\n
time_namelookup : %{time_namelookup} sec\n
time_connect : %{time_connect} sec\n
time_appconnect : %{time_appconnect} sec\n
time_pretransfer : %{time_pretransfer} sec\n
time_starttransfer: %{time_starttransfer} sec\n
time_total : %{time_total} sec\n
EOS