Gnus development mailing list
 help / color / mirror / Atom feed
From: Christoph Conrad <christoph.conrad@gmx.de>
Subject: Re: Idea: Use of gethash/puthash for GNU Emacs 21?
Date: 02 Jun 2001 10:23:51 +0200	[thread overview]
Message-ID: <m3pucn5n66.fsf@gmx.de> (raw)
In-Reply-To: <m3g0dm57b0.fsf@gmx.de> (Christoph Conrad's message of "31 May 2001 09:10:48 +0200")

    > When i get time in the next days i will do some performance
    > comparisons.

Ok, done so. Used Lars Magne Ingebrigtsen's benchmark.el (from
quimby.gnus.org).

(benchmark 10000 (gnus-sethash (int-to-string (random 1000))
                               (random 1000)
                               hashtable))

(benchmark 10000 (gnus-gethash (int-to-string (random 1000))
                               hashtable))


the same for puthash/gethash (with makehash called without args). I
made garbage collections before each measurement. gc-cons-threshold's
value is 3000000 and the repeat count to benchmark only 10000 to
prevent any garbage collections.

The result is astonishing: performance is nearly identical for this
_very_ limited testset.

Best regards,
cu, -cc-
-- 
=> GNU Emacs Webring @ <http://www.gnusoftware.com/WebRing/> <=
Look Ma, this man can twist his fingers as if they were made of rubber,
isn't that amazing? -- Not really, he's been using emacs for years...!


  reply	other threads:[~2001-06-02  8:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-31  7:10 Christoph Conrad
2001-06-02  8:23 ` Christoph Conrad [this message]
2001-08-19 20:54   ` Lars Magne Ingebrigtsen
2001-09-01 16:37     ` Dave Love

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=m3pucn5n66.fsf@gmx.de \
    --to=christoph.conrad@gmx.de \
    /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 NNTP newsgroup(s).