GNU bug report logs -
#69480
Emacs Lisp needs, for its great 'native-compile', 'declare' and 'the' for fixnums and arrays.
Previous Next
Full log
View this message in rfc822 format
> From: Robert Boyer <robertstephenboyer <at> gmail.com>
> Date: Thu, 29 Feb 2024 14:54:46 -0600
> Cc: 69480 <at> 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.
This bug report was last modified 164 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.