bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#69480: Emacs Lisp needs, for its great 'native-compile', 'declare' a


From: Eli Zaretskii
Subject: bug#69480: Emacs Lisp needs, for its great 'native-compile', 'declare' and 'the' for fixnums and arrays.
Date: Fri, 01 Mar 2024 08:45:37 +0200

> From: Robert Boyer <robertstephenboyer@gmail.com>
> Date: Thu, 29 Feb 2024 14:54:46 -0600
> Cc: 69480@debbugs.gnu.org
> 
> > You use benchmark incorrectly. 
> 
> Huh?  Here is the documentation.
> 
> benchmark is an interactive native-compiled Lisp function in ‘benchmark.el’.
> 
> (benchmark REPETITIONS FORM)
> 
> Print the time taken for REPETITIONS executions of FORM.
> Interactively, REPETITIONS is taken from the prefix arg, and
> the command prompts for the form to benchmark.
> For non-interactive use see also ‘benchmark-run’ and
> ‘benchmark-run-compiled’.
> FORM can also be a function in which case we measure the time it takes
> to call it without any argument.

Yes, and in your recipe you reversed the order of the arguments:

  (benchmark (build-sieve (expt 10 8)) 1)

> >  It takes 16.7 sec on my system.
> 
> All of my times come from using a $100 Lenovo Chromebook.  How much did your 
> machine
> cost?

I gave my timing as another data point.  I have no way of measuring
the timing on your machine, obviously.





reply via email to

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