curl / Mailing Lists / curl-users / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Re: Curl's network performance is slower than IDM.

From: Hongyi Zhao via curl-users <curl-users_at_cool.haxx.se>
Date: Tue, 16 Jun 2020 10:19:32 +0800

Daniel Stenberg <daniel_at_haxx.se> 于2020年6月16日周二 上午5:44写道:
>
> On Sun, 14 Jun 2020, Hongyi Zhao via curl-users wrote:
>
> > On Ubuntu 20.04
>
> I presume that's curl 7.68.0 ?

$ curl --version
curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f
zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0)
libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Release-Date: 2020-01-08
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps
pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos
Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets

>
> > $ curl -L -x socks5h://127.0.0.1:10119
> > http://speedtest-ny.turnkeyinternet.net/1000mb.bin >/dev/null
> > % Total % Received % Xferd Average Speed Time Time Time Current
> > Dload Upload Total Spent Left Speed
> > 46 1024M 46 475M 0 0 9.7M 0 0:01:44 0:00:48 0:00:56 11.1M^C
> >
> > The IDM gives around 16 ~ 20 MB/s speed.
>
> Are these transfer speeds somewhat stable and reliable in repeated tests?
>
> Do the same symptoms reproduce even if you don't use a SOCKS proxy? What's the
> theoretical maximum speed for you against this URL? From my dev machine in
> Sweden, my curl reached 30MB/s from this URL.
>
> > I'm confused on the above results. Why IDM shows a higher network
> > performance than curl? Are there some bottlenecks/glitches/bugs in curl's
> > network transfer algorithms?
>
> I'm not aware of any. Reading on the IDM site, it seems very content about its
> use of multiple connections and ranges to download data. Have you verified
> that your test case with that actually only uses a single TCP stream? Just so
> that we compare the same things.
>
> --
>
> / daniel.haxx.se | Commercial curl support up to 24x7 is available!
> | Private help, bug fixes, support, ports, new features
> | https://www.wolfssl.com/contact/

-- 
Hongyi Zhao <hongyi.zhao_at_gmail.com>
-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-06-16