curl / Mailing Lists / curl-library / 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: Daniel Stenberg via curl-library <curl-library_at_cool.haxx.se>
Date: Mon, 15 Jun 2020 23:44:15 +0200 (CEST)

On Sun, 14 Jun 2020, Hongyi Zhao via curl-users wrote:

> On Ubuntu 20.04

I presume that's curl 7.68.0 ?

> $ 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/
-------------------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library
Etiquette:   https://curl.haxx.se/mail/etiquette.html
Received on 2020-06-15