unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: "Juhani Viheräkoski" <moonshine@kapsi.fi>
To: guile-devel@gnu.org
Subject: Enormous benchmark speedup
Date: Wed, 1 Jul 2009 17:48:29 +0300 (EEST)	[thread overview]
Message-ID: <Pine.LNX.4.64.0907011729050.2186@lakka.kapsi> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 987 bytes --]

Hi,

With recent changes in guile vm there are lots on improvements on 
the Gambit benchmarks. In the worst case some test run 10% slower but there
are huge wins in testcases involving vectors offsetting this. Here are 
*some* of the highlights:

triangl:
-15.57user 0.04system 0:15.72elapsed 99%CPU
+6.69user 0.02system 0:06.73elapsed 99%CPU

fft:
-59.16user 0.14system 0:59.89elapsed 99%CPU
+36.50user 0.07system 0:36.68elapsed 99%CPU

nucleic:
-38.99user 0.31system 0:39.30elapsed 99%CPU 
+24.54user 0.27system 0:24.85elapsed 99%CPU

pnpoly:
-85.52user 0.11system 1:25.69elapsed 99%CPU
+38.64user 0.05system 0:38.82elapsed 99%CPU

array1:
-65.91user 0.31system 1:06.51elapsed 99%CPU
+13.66user 0.25system 0:13.95elapsed 99%CPU

However the following testcase does not run when compiled, all the others 
work fine atm (source code attached):

ack:
guile: uncaught throw to vm-error: (vm-run "VM: Stack overflow" ())

Best Regards,
Juhani Viheräkosi

[-- Attachment #2: Type: TEXT/PLAIN, Size: 142 bytes --]

(define (ack m n)
  (cond ((= m 0) (+ n 1))
        ((= n 0) (ack (- m 1) 1))
        (else (ack (- m 1) (ack m (- n 1))))))

(ack 3 9)

             reply	other threads:[~2009-07-01 14:48 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-01 14:48 Juhani Viheräkoski [this message]
2009-07-01 22:47 ` Enormous benchmark speedup Ludovic Courtès
2009-07-02 15:49 ` Juhani Viheräkoski
2009-07-23 21:26   ` Andy Wingo
2009-07-26  1:09     ` Juhani Viheräkoski
2009-07-26 12:26       ` tfib.scm Juhani Viheräkoski

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=Pine.LNX.4.64.0907011729050.2186@lakka.kapsi \
    --to=moonshine@kapsi.fi \
    --cc=guile-devel@gnu.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).