all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry OReilly <gundaetiapo@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 14892@debbugs.gnu.org
Subject: bug#14892: [PATCH] Enhance Elisp compare functions (< <= > >=) to take var args
Date: Mon, 9 Sep 2013 18:53:27 -0400	[thread overview]
Message-ID: <CAFM41H3zQhOmQf6Ufngh54A0R7wwHNpE97u-7Bt4aUw73sTrGg@mail.gmail.com> (raw)
In-Reply-To: <jwvfvth4bc1.fsf-monnier+emacs@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 689 bytes --]

> Do you have some performance numbers?

Let arithcompare-benchmark.el contain:

  (defun arithcompare-many (lhs rhs)
    (dotimes (_ (floor 1e6))
      (< lhs rhs)))
  (message "%s" (benchmark-run 1 (arithcompare-many 100 101)))

Run by:

  emacs -Q --batch -f batch-byte-compile arithcompare-benchmark.el && emacs
-Q --batch --load arithcompare-benchmark.elc

The results averaged over ten trials each:

  Before patch: (0.061 0 0.0)
  After patch: (0.084 0 0.0)

In GNU Emacs 24.3.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.10.4)
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
System Description:    Red Hat Enterprise Linux Client release 5.4 (Tikanga)

[-- Attachment #2: Type: text/html, Size: 813 bytes --]

  reply	other threads:[~2013-09-09 22:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-17 15:58 bug#14892: Enhance Elisp compare functions (< <= > >=) to take var args Barry OReilly
2013-09-06 23:02 ` bug#14892: [PATCH] " Barry OReilly
2013-09-07  2:28   ` Stefan Monnier
2013-09-09 22:53     ` Barry OReilly [this message]
2013-09-10 13:20       ` Stefan Monnier
2013-09-10 14:54         ` Barry OReilly
2013-09-10 20:16           ` Stefan Monnier
2013-09-10 23:35             ` Barry OReilly
2013-09-11  1:08               ` Stefan Monnier
2013-09-11  5:10                 ` Barry OReilly
2013-09-11 12:33                   ` Stefan Monnier

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=CAFM41H3zQhOmQf6Ufngh54A0R7wwHNpE97u-7Bt4aUw73sTrGg@mail.gmail.com \
    --to=gundaetiapo@gmail.com \
    --cc=14892@debbugs.gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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.