add curl benchmark

This commit is contained in:
Patrick Schratz 2024-07-30 16:12:45 +02:00
commit e61126ee4d
Signed by: pat-s
GPG key ID: 3C6318841EF78925

37
curl-benchmark.sh Normal file
View file

@ -0,0 +1,37 @@
echo -e "
time_namelookup: %{time_namelookup}s\n
time_connect: %{time_connect}s\n
time_appconnect: %{time_appconnect}s\n
time_pretransfer: %{time_pretransfer}s\n
time_redirect: %{time_redirect}s\n
time_starttransfer: %{time_starttransfer}s\n
----------\n
time_total: %{time_total}s\n
" > curl-format.txt
curl -w "@curl-format.txt" -o /dev/null -s "https://packagemanager.posit.co/cran/latest/src/contrib/arrow_16.1.0.tar.gz"
time_namelookup: 0.006233s
time_connect: 0.125975s
time_appconnect: 0.372086s
time_pretransfer: 0.373104s
time_redirect: 0.000000s
time_starttransfer: 0.499798s
----------
time_total: 0.500019s⏎
curl -w "@curl-format.txt" -o NUL -s "https://cran.devxy.io/arm64/rhel9/latest/src/contrib/arrow_16.1.0.tar.gz"
time_namelookup: 0.003505s
time_connect: 0.018930s
time_appconnect: 0.041507s
time_pretransfer: 0.041587s
time_redirect: 0.000000s
time_starttransfer: 0.056802s
----------
time_total: 0.057002s⏎
rm curl-format.txt