emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Sv: Emacs HTTP libraries [was: Re: How to contribute new package to


From: Clément Pit-Claudel
Subject: Re: Sv: Emacs HTTP libraries [was: Re: How to contribute new package to GNU ELPA?]
Date: Tue, 30 Mar 2021 12:13:55 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.1

On 3/30/21 10:25 AM, Eli Zaretskii wrote:
> I just tried
> 
>   (benchmark-run 1 (url-retrieve-synchronously
>                     "https://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.xz";))
> 
> in Emacs, and compared that with download by wget.  On my relatively
> slow home connection I get almost the same times, down to less than
> 2%.

On my decently fast home connection, Emacs takes 4.5s-5s to download that file 
using the form you posted, and wget takes 1.4s-2s to download the same file:

(benchmark-run 1 (url-retrieve-synchronously 
"https://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.xz";))
⇒ (4.875848555 13 3.7572300619999623)

(benchmark-run 1 (shell-command-to-string "wget 
https://ftp.gnu.org/gnu/emacs/emacs-27.2.tar.xz";))
⇒ (1.5106374 0 0.0)

Clément.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]