cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: curl download performances

From: Ralph Mitchell <ralphmitchell_at_gmail.com>
Date: Fri, 9 Jan 2015 10:14:56 -0500

On Jan 9, 2015 9:42 AM, "Mokhtar BEN MESSAOUD" <mbmessaoud_at_gmail.com> wrote:
>
> Hi
>
> I am testing curl pezrformance vs wget
>
> I find that wget is far responsive than curl
> wget download a test file from localhost in 5s , while curl download the
same file in 11 minutes
>
> i use time to display time elapsed
>
> time wget http://127.0.0.1/test
> --2015-01-07 16:36:54-- http://127.0.0.1/test
> Connecting to 127.0.0.1:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 1000000000 (954M) [application/octet-stream]
> Saving to: ‘test’
>
> 100%[====================================>] 1,000,000,000 196MB/s in
5.2s
>
> 2015-01-07 16:36:59 (183 MB/s) - ‘test’ saved [1000000000/1000000000]
>
>
> real 0m5.433s
> user 0m0.204s
> sys 0m2.084s
>
>
>
> and
>
> time curl http://127.0.0.1/test
>
> real 11m37.191s
> user 0m1.920s
> sys 0m13.644s

Interesting. I just pulled a 615Mb file across from one machine to
another, saving the file to /dev/null. Wget finished in 1 min 1.031s real
time. Curl finished in 1 min 0.021s real time. That makes curl faster by
1.01 sec.

Ralph Mitchell

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-01-09