cURL / Mailing Lists / curl-users / Single Mail

curl-users

curl download performances

From: Mokhtar BEN MESSAOUD <mbmessaoud_at_gmail.com>
Date: Fri, 9 Jan 2015 15:31:49 +0100

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

How to configure curl to get the same result as wget ?

-------------------------------------------------------------------
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