[Top][All Lists]

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

bug#14892: [PATCH] Enhance Elisp compare functions (< <= > >=) to take v

From: Barry OReilly
Subject: bug#14892: [PATCH] Enhance Elisp compare functions (< <= > >=) to take var args
Date: Mon, 9 Sep 2013 18:53:27 -0400

> 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 (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)

reply via email to

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