From: Kaushal Modi <kaushal.modi@gmail.com>
To: Noam Postavsky <npostavs@users.sourceforge.net>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: How to count the number of occurrences of a character in a string?
Date: Wed, 14 Oct 2015 16:00:56 -0400 [thread overview]
Message-ID: <CAFyQvY0CPuiC2RXBfbT8H=K3U1BE=iONanbn84BCS7q2qUYUSw@mail.gmail.com> (raw)
In-Reply-To: <loom.20151014T201516-206@post.gmane.org>
Thanks! That *was* the problem.
Code: https://gist.github.com/kaushalmodi/ab487f63727381179f61
--
Kaushal Modi
On Wed, Oct 14, 2015 at 2:19 PM, Noam Postavsky <
npostavs@users.sourceforge.net> wrote:
> Kaushal Modi <kaushal.modi <at> gmail.com> writes:
> > I ran the below wrapper progn block couple of times and I got
> > different results each time. Oddly enough, I even got negative
> > execution times.
> > What am I doing wrong?
>
> `benchmark' is a function, you need to quote the code you pass to it,
> otherwise you're measuring how long it takes to evaluate `2' (the result of
> the progn block).
>
>
>
>
next prev parent reply other threads:[~2015-10-14 20:00 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-12 19:45 How to count the number of occurrences of a character in a string? Marcin Borkowski
2015-10-12 21:43 ` Kaushal Modi
2015-10-12 23:27 ` Nick Dokos
2015-10-13 1:18 ` Stefan Monnier
2015-10-13 16:06 ` Kaushal Modi
2015-10-13 16:31 ` Kaushal Modi
2015-10-13 16:48 ` Eli Zaretskii
2015-10-13 17:41 ` Eli Zaretskii
2015-10-13 17:43 ` Kaushal Modi
2015-10-13 19:07 ` Eli Zaretskii
2015-10-13 19:56 ` Kaushal Modi
2015-10-13 20:17 ` Eli Zaretskii
2015-10-13 20:41 ` Kaushal Modi
[not found] ` <mailman.267.1444767491.7904.help-gnu-emacs@gnu.org>
2015-10-13 20:46 ` Brendan Halpin
2015-10-13 21:07 ` Kaushal Modi
[not found] ` <mailman.273.1444770543.7904.help-gnu-emacs@gnu.org>
2015-10-13 22:44 ` Joost Kremers
2015-10-14 10:04 ` Oleh Krehel
2015-10-14 17:06 ` Eli Zaretskii
2015-10-13 20:43 ` Michael Heerdegen
2015-10-13 20:59 ` Charles Curley
2015-10-14 18:19 ` Noam Postavsky
2015-10-14 20:00 ` Kaushal Modi [this message]
2015-10-13 22:00 ` Emanuel Berg
[not found] <mailman.164.1444679125.7904.help-gnu-emacs@gnu.org>
2015-10-12 23:35 ` Joost Kremers
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFyQvY0CPuiC2RXBfbT8H=K3U1BE=iONanbn84BCS7q2qUYUSw@mail.gmail.com' \
--to=kaushal.modi@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=npostavs@users.sourceforge.net \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).