From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: is there a emacs lisp timing command?
Date: Tue, 24 Mar 2009 15:07:20 -0700 (PDT) [thread overview]
Message-ID: <7dd16824-e521-4b36-a258-7e7f1d6bfbe2@f1g2000prb.googlegroups.com> (raw)
In-Reply-To: mailman.3921.1237926315.31690.help-gnu-emacs@gnu.org
On Mar 24, 1:25 pm, Nikolaj Schumacher <m...@nschum.de> wrote:
> Xah Lee <xah...@gmail.com> wrote:
> > is there a elisp command like timing, that returns the time a function
> > took?
>
> Seems like everybody here has written their own, but Emacs does come with:
> benchmark-run and benchmark-run-compiled.
>
> It takes garbage collection into account, which can explain fluctuating
> results.
Thank you all for the help.
After reading the replies, it turns out my error was that i mistook
microsecond to be 10^-3 but it should be 10^-6.
Thanks Nik for the benchmark-run. That'll be helpful too, and the elp
profiler down the road.
Xah
∑ http://xahlee.org/
☄
prev parent reply other threads:[~2009-03-24 22:07 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-24 1:57 is there a emacs lisp timing command? Xah Lee
2009-03-24 6:12 ` thierry.volpiatto
2009-03-24 6:35 ` thierry.volpiatto
2009-03-24 6:46 ` thierry.volpiatto
2009-03-24 7:30 ` Helmut Eller
2009-03-24 8:11 ` thierry.volpiatto
2009-03-24 10:05 ` David Kastrup
2009-03-24 20:25 ` Nikolaj Schumacher
[not found] ` <mailman.3921.1237926315.31690.help-gnu-emacs@gnu.org>
2009-03-24 22:07 ` Xah Lee [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7dd16824-e521-4b36-a258-7e7f1d6bfbe2@f1g2000prb.googlegroups.com \
--to=xahlee@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.