Curl Wget

Posted on  by 



  • This message:[ Message body ] [ More options ]
  • Related messages:[ Next message ][ Previous message ][ Next in thread ] [ Replies ]
From: Tim Rühsen <tim.ruehsen_at_gmx.de>

Curl builds and runs on more platforms than wget. Wget is released under a free software copyleft license (the GNU GPL). Curl is released under a free software permissive license (a MIT derivate). Curl offers upload and sending capabilities. Wget only offers plain HTTP POST support. You can see more details at the following link. Wget/curl is installed on my local dev machine. Wget is installed on the remote machine, but not curl. BusyBox v1.29.3 (2020-05-18 16:27:37 UTC) multi-call binary. The VScode logs while trying to connect remote.

Date: Wed, 29 Jun 2016 19:59:23 +0200

Hi,

I recently made a few comparisons between curl 7.50.0-DEV and wget 1.18 and
was astonished about wget outperforming curl by some fair amount on single
HTTPS request/response cycles.

So my question goes... what is 'wrong' with that version of curl. Or what did
I oversee - maybe some special options ?

Some details from here:
Debian SID amd64, both wget and curl built/installed with GnuTLS (3.4.13)
Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz
2MBit/s DSL, ping to www.google.com is ~106ms

Downloading a non-existent page at www.google.com (a.html) via HTTPS/HTTP1.1.
The figures from 'time' are the fastest I got in 10 tries.

$ time curl -s -o/dev/null https://www.google.com/a.html
real 0m0.744s
user 0m0.092s
sys 0m0.016s

Curl Vs Wget

$ time wget -q -o/dev/null --no-alpn https://www.google.com/a.html
real 0m0.507s
user 0m0.016s
sys 0m0.008s

Looks like there is some (pretty huge ~ 240ms) startup penalty hidden
somewhere. Building with OpenSSL makes not much difference.

Curl wget alternativeWget vs curl speedCurl Wget

BTW, the only possibility to disable HTTP2 was using --no-alpn. --no-http2 did
not switch if off.

Regards, Tim

Wget Equivalent Powershell

$ curl --version
curl 7.50.0-DEV (x86_64-pc-linux-gnu) libcurl/7.50.0-DEV GnuTLS/3.4.13
zlib/1.2.8 libidn/1.32 libpsl/0.11.0 (+libicu/55.1) nghttp2/1.11.1
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb
smbs smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz TLS-SRP HTTP2 UnixSockets
PSL

$ wget --version
GNU Wget 1.18 built on linux-gnu.

-cares +digest -gpgme +https +ipv6 +iri +large-file -metalink +nls
+ntlm +opie +psl +ssl/gnutls

Curls Curls Clip Ins

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html

  • application/pgp-signature attachment: This is a digitally signed message part.
Received on 2016-06-29
  • This message: [ Message body ]
  • Next message: Dima Tisnek: 'Re: Speed comparison wget vs. curl (HTTPS/HTTP1/GnuTLS)'
  • Previous message: Richard Gray: 'Re: HTTP > HTTPS redirect with curl_global_init(CURL_GLOBAL_NOTHING) crashes'
  • Next in thread: Dima Tisnek: 'Re: Speed comparison wget vs. curl (HTTPS/HTTP1/GnuTLS)'
  • Reply: Dima Tisnek: 'Re: Speed comparison wget vs. curl (HTTPS/HTTP1/GnuTLS)'
  • Reply: Daniel Stenberg: 'Re: Speed comparison wget vs. curl (HTTPS/HTTP1/GnuTLS)'
  • Reply: Jeff Pohlmeyer: 'Re: Speed comparison wget vs. curl (HTTPS/HTTP1/GnuTLS)'
  • Maybe reply: Kamil Dudka: 'Re: Speed comparison wget vs. curl (HTTPS/HTTP1/GnuTLS)'
  • Reply: Daniel Stenberg: 'Re: Speed comparison wget vs. curl (HTTPS/HTTP1/GnuTLS)'

Curl Curl Beach

Wget

Curl Wget Linux

  • Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]




Coments are closed