diff --git a/curl-benchmark.sh b/curl-benchmark.sh new file mode 100644 index 0000000..0c1ad80 --- /dev/null +++ b/curl-benchmark.sh @@ -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 \ No newline at end of file