cURL / Mailing Lists / curl-library / Single Mail


Re: Speed comparison wget vs. curl (HTTPS/HTTP1/GnuTLS)

From: Tor Arntsen <>
Date: Thu, 30 Jun 2016 09:36:11 +0200

On 29 June 2016 at 23:07, Jeff Pohlmeyer <> wrote:

> The requested page does not exist, so wget does not download anything.
> curl, on the other hand, will download the error page by default.
> Try the --fail option to curl and see if it makes any difference.

It seems to make little difference. I verified that without --fail it
downloads the error page, with --fail it doesn't.

$ time wget -q -o/dev/null
0.028u 0.000s 0:00.19 10.5% 0+0k 0+8io 0pf+0w
$ time curl -s -o/dev/null --no-alpn
0.108u 0.020s 0:00.34 35.2% 0+0k 0+0io 0pf+0w
$ time curl -s -o/dev/null --fail --no-alpn
0.104u 0.028s 0:00.34 35.2% 0+0k 0+0io 0pf+0w

There is quite a bit of variation, so it's better to just look at the
approximate magnitudes (--fail isn't always slower than without
--fail...). From the command line wget is definitely more snappy, it's
very noticable how much quicker it finishes.

List admin:
Received on 2016-06-30