unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Stefan Israelsson Tampe <stefan.itampe@gmail.com>
To: guile-devel <guile-devel@gnu.org>
Subject: rtl tests
Date: Tue, 18 Dec 2012 22:41:33 +0100	[thread overview]
Message-ID: <CAGua6m3CPQM8fFjPaETL+iT-BvsVDetgKVc_Hrr+X=0XemzBzA@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1610 bytes --]

Hi,

I'm just finished debugging the rtl generator to actually compile files to
the rtl VM and today I managed to get srfi-1.scm to pass all tests.

Maybe more interesting is the performance test in the repo. And here are
the vote:
--------------------------------------------------------------------------------------
RTL VM
=======:
("srfi-1.bm: fold: big" 30
real 1.11

("srfi-1.bm: fold: small" 2000000
real 1.18

("srfi-1.bm: drop-while: big" 30
real 1.24

("srfi-1.bm: drop-while: small" 2000000
real 1.27

("srfi-1.bm: map: big" 30
real 2.95

("srfi-1.bm: map: small" 2000000
real 2.35

("srfi-1.bm: for-each: big" 30 real
1.88

("srfi-1.bm: for-each: small" 2000000
real 1.72
-------------------------------------------------------------------------------------
GUILE-2.0 VM in master?
===================
("srfi-1.bm: fold: big" 30
real 1.47

("srfi-1.bm: fold: small" 2000000 real
1.29 real/iteration

("srfi-1.bm: drop-while: big" 30 real
1.43 real/iteration

("srfi-1.bm: drop-while: small" 2000000 real
1.23 real/iteration

("srfi-1.bm: map: big" 30 real
3.42 real/iteration

("srfi-1.bm: map: small" 2000000 real
2.55 real/iteration

("srfi-1.bm: for-each: big" 30 real
2.25

("srfi-1.bm: for-each: small" 2000000 real
1.80
----------------------------------------------------------------------------------------

To note here are that I executed the functions from guile-2.0 VM
e.g. there is an expensive call to set upp the RTL VM for each iteration of
the test. Therefore I would not judge the small cases. On the other hand
the big cases shows quite a significant speedup!

Have fun!
/Stefan

[-- Attachment #2: Type: text/html, Size: 3184 bytes --]

                 reply	other threads:[~2012-12-18 21:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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='CAGua6m3CPQM8fFjPaETL+iT-BvsVDetgKVc_Hrr+X=0XemzBzA@mail.gmail.com' \
    --to=stefan.itampe@gmail.com \
    --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).