unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Thien-Thi Nguyen <ttn@giblet.glug.org>
Cc: guile-user@gnu.org
Subject: Re: MEMOIZE_LOCALS (fwd)
Date: Thu, 27 Jun 2002 20:34:46 -0700	[thread overview]
Message-ID: <E17NmX0-00011X-00@giblet> (raw)
In-Reply-To: Pine.GSO.4.05.10206280104350.6506-100000@sallust.ida.ing.tu-bs.de

below are some simple scripts you might find useful: 10x and 100x.  i
use them currently to see what kind of speedup qthreads omission incurs.
they live in (new directory) test-suite/perf/ at the moment, eventually
they should be put guile-scripts (cvs module) and copied into place by
autogen.sh.  example invocations:

  cd $builddir
  100x ./pre-inst-guile -c '(quit)'
  100x ./pre-inst-guile -c '(use-modules (ice-9 threads)) (quit)'
  [repeat in guile-1.4.1 $builddir]

for pre-inst-guile, the speedup is negative since there is now another
element in the search path.  OTOH, installed shows expected results...

thi


____________________________________________
#!/bin/bash

go ()
{
    iter=$1
    shift
    for (( i=$iter ; $i > 0 ; i = $i - 1 )) ; do "$@" ; done
}

time go 10 "$@"

____________________________________________
#!/bin/bash

go ()
{
    iter=$1
    shift
    for (( i=$iter ; $i > 0 ; i = $i - 1 )) ; do "$@" ; done
}

time go 100 "$@"

_______________________________________________
Guile-user mailing list
Guile-user@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-user


      parent reply	other threads:[~2002-06-28  3:34 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-27 21:24 MEMOIZE_LOCALS (fwd) Dirk Herrmann
2002-06-27 21:51 ` Thien-Thi Nguyen
2002-06-27 23:39   ` Dirk Herrmann
2002-06-28  0:06     ` Thien-Thi Nguyen
2002-06-28  3:34     ` Thien-Thi Nguyen [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

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E17NmX0-00011X-00@giblet \
    --to=ttn@giblet.glug.org \
    --cc=guile-user@gnu.org \
    --cc=ttn@glug.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.
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).