2 changed files with 24 additions and 0 deletions
@ -0,0 +1,23 @@
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash |
||||
|
||||
#Создан: вс 03 окт 2021 13:41:35 |
||||
#Изменён: вс 03 окт 2021 13:52:09 |
||||
|
||||
# Get response time for URL. |
||||
# (c) idea: https://sysadmin.pm/curl-site-speed/ |
||||
|
||||
IFS='' read -r -d '' OUTPUT_FORMAT <<-EOF |
||||
# Test response time for %{url_effective} |
||||
|
||||
Lookup Time: %{time_namelookup} |
||||
Connect Time: %{time_connect} |
||||
AppCon Time: %{time_appconnect} |
||||
Redirect Time: %{time_redirect} |
||||
Pre-transfer Time: %{time_pretransfer} |
||||
Start-transfer Time: %{time_starttransfer} |
||||
|
||||
Total Time: %{time_total} |
||||
EOF |
||||
|
||||
curl -s -w "$OUTPUT_FORMAT" -o /dev/null "${1?USAGE: $(basename "$0" URL)}" |
||||
|
Loading…
Reference in new issue