sb-vs-xray/round1/bench_curl_direct.txt

73 lines
5 KiB
Text

~/code/smp-socks> hyperfine -m 50 'curl https://dc09.ru/Marisa.m4a' 'curl --proxy socks5://127.0.0.1:2080 https://dc09.ru/Marisa.m4a' 'curl --proxy socks5://127.0.0.1:2081 https://dc09.ru/Marisa.m4a' 'curl --proxy socks5://127.0.0.1:2009 https://dc09.ru/Marisa.m4a'
Benchmark 1: curl https://dc09.ru/Marisa.m4a
Time (mean ± σ): 477.2 ms ± 51.9 ms [User: 41.2 ms, System: 16.0 ms]
Range (min … max): 383.3 ms … 697.7 ms 50 runs
Benchmark 2: curl --proxy socks5://127.0.0.1:2080 https://dc09.ru/Marisa.m4a
Time (mean ± σ): 478.6 ms ± 44.4 ms [User: 21.5 ms, System: 7.6 ms]
Range (min … max): 376.4 ms … 681.2 ms 50 runs
Benchmark 3: curl --proxy socks5://127.0.0.1:2081 https://dc09.ru/Marisa.m4a
Time (mean ± σ): 467.7 ms ± 47.8 ms [User: 18.5 ms, System: 7.4 ms]
Range (min … max): 374.2 ms … 662.8 ms 50 runs
Benchmark 4: curl --proxy socks5://127.0.0.1:2009 https://dc09.ru/Marisa.m4a
Time (mean ± σ): 593.1 ms ± 191.5 ms [User: 33.4 ms, System: 9.7 ms]
Range (min … max): 436.2 ms … 1824.6 ms 50 runs
Warning: Statistical outliers were detected. Consider re-running this benchmark on a quiet system without any interferences from other programs. It might help to use the '--warmup' or '--prepare' options.
Summary
curl --proxy socks5://127.0.0.1:2081 https://dc09.ru/Marisa.m4a ran
1.02 ± 0.15 times faster than curl https://dc09.ru/Marisa.m4a
1.02 ± 0.14 times faster than curl --proxy socks5://127.0.0.1:2080 https://dc09.ru/Marisa.m4a
1.27 ± 0.43 times faster than curl --proxy socks5://127.0.0.1:2009 https://dc09.ru/Marisa.m4a
~/code/smp-socks> [''] | append ($proxies | each { "--proxy socks5://127.0.0.1:" + $in }) | each { "\'curl " + $in + " http://dc09.ru\'" } | str join ' ' 18.11.2024 15:24:57
'curl http://dc09.ru' 'curl --proxy socks5://127.0.0.1:2080 http://dc09.ru' 'curl --proxy socks5://127.0.0.1:2081 http://dc09.ru' 'curl --proxy socks5://127.0.0.1:2009 http://dc09.ru'
~/code/smp-socks> hyperfine -m 200 'curl http://dc09.ru' 'curl --proxy socks5://127.0.0.1:2080 http://dc09.ru' 'curl --proxy socks5://127.0.0.1:2081 http://dc09.ru' 'curl --proxy socks5://127.0.0.1:2009 http://dc09.ru'
Benchmark 1: curl http://dc09.ru
Time (mean ± σ): 60.5 ms ± 4.3 ms [User: 5.2 ms, System: 4.5 ms]
Range (min … max): 51.0 ms … 81.7 ms 200 runs
Benchmark 2: curl --proxy socks5://127.0.0.1:2080 http://dc09.ru
Time (mean ± σ): 62.2 ms ± 4.6 ms [User: 5.0 ms, System: 4.8 ms]
Range (min … max): 49.1 ms … 69.9 ms 200 runs
Benchmark 3: curl --proxy socks5://127.0.0.1:2081 http://dc09.ru
Time (mean ± σ): 61.6 ms ± 4.3 ms [User: 4.9 ms, System: 4.7 ms]
Range (min … max): 51.2 ms … 76.4 ms 200 runs
Benchmark 4: curl --proxy socks5://127.0.0.1:2009 http://dc09.ru
Time (mean ± σ): 62.3 ms ± 4.5 ms [User: 5.1 ms, System: 5.0 ms]
Range (min … max): 51.7 ms … 90.6 ms 200 runs
Summary
curl http://dc09.ru ran
1.02 ± 0.10 times faster than curl --proxy socks5://127.0.0.1:2081 http://dc09.ru
1.03 ± 0.11 times faster than curl --proxy socks5://127.0.0.1:2080 http://dc09.ru
1.03 ± 0.10 times faster than curl --proxy socks5://127.0.0.1:2009 http://dc09.ru
~/code/smp-socks> [''] | append ($proxies | each { "--proxy socks5://127.0.0.1:" + $in }) | each { "\'curl " + $in + " https://github.com\'" } | str join ' '
'curl https://github.com' 'curl --proxy socks5://127.0.0.1:2080 https://github.com' 'curl --proxy socks5://127.0.0.1:2081 https://github.com' 'curl --proxy socks5://127.0.0.1:2009 https://github.com'
~/code/smp-socks> hyperfine -m 50 'curl https://github.com' 'curl --proxy socks5://127.0.0.1:2080 https://github.com' 'curl --proxy socks5://127.0.0.1:2081 https://github.com' 'curl --proxy socks5://127.0.0.1:2009 https://github.com'
Benchmark 1: curl https://github.com
Time (mean ± σ): 402.1 ms ± 22.8 ms [User: 44.9 ms, System: 9.5 ms]
Range (min … max): 365.3 ms … 449.8 ms 50 runs
Benchmark 2: curl --proxy socks5://127.0.0.1:2080 https://github.com
Time (mean ± σ): 390.5 ms ± 25.6 ms [User: 37.0 ms, System: 7.1 ms]
Range (min … max): 338.6 ms … 445.5 ms 50 runs
Benchmark 3: curl --proxy socks5://127.0.0.1:2081 https://github.com
Time (mean ± σ): 390.8 ms ± 20.7 ms [User: 23.3 ms, System: 5.3 ms]
Range (min … max): 342.3 ms … 426.0 ms 50 runs
Benchmark 4: curl --proxy socks5://127.0.0.1:2009 https://github.com
Time (mean ± σ): 527.5 ms ± 30.3 ms [User: 41.0 ms, System: 6.9 ms]
Range (min … max): 470.7 ms … 588.9 ms 50 runs
Summary
curl --proxy socks5://127.0.0.1:2080 https://github.com ran
1.00 ± 0.08 times faster than curl --proxy socks5://127.0.0.1:2081 https://github.com
1.03 ± 0.09 times faster than curl https://github.com
1.35 ± 0.12 times faster than curl --proxy socks5://127.0.0.1:2009 https://github.com
~/code/smp-socks>