guile-user
[Top][All Lists]
Advanced

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

Re: MEMOIZE_LOCALS (fwd)


From: Thien-Thi Nguyen
Subject: Re: MEMOIZE_LOCALS (fwd)
Date: Thu, 27 Jun 2002 20:34:46 -0700

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 "$@"



reply via email to

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