Benchmarks for various Scheme implementations. Taken with kind permission from the Larceny project, based on the Gabriel and Gambit benchmarks.
Scheme HTML TeX JavaScript Shell KiCad
Latest commit 61c41dd Dec 1, 2016 @ecraven new run
Permalink
Failed to load latest commit information.
inputs Change output from list of numeric symbols '|123| to list of actual n… May 4, 2016
outputs Make sure ./outputs exists May 4, 2016
src Add support for Cyclone Scheme (#18) Jul 22, 2016
.gitignore Do not ignore results.* and *.csv any more May 31, 2016
Makefile Makefile: Fix stalin and tinyscheme May 17, 2016
Makefile.schemes fix typo Oct 6, 2016
README.org Add Cyclone Scheme to readme (#19) Aug 29, 2016
all.csv new run Dec 1, 2016
bench add cyclone Aug 29, 2016
benchmark.html new run Dec 1, 2016
results.Bigloo new run Nov 30, 2016
results.Bones new run Nov 30, 2016
results.Chez new run Nov 30, 2016
results.Chibi new run Nov 30, 2016
results.Chicken new run Nov 30, 2016
results.ChickenCSI new run Nov 30, 2016
results.Cyclone new run Nov 30, 2016
results.Foment new run Nov 30, 2016
results.GambitC new run Nov 30, 2016
results.Gauche new run Nov 30, 2016
results.Guile new run Nov 30, 2016
results.Guile2 new run Nov 30, 2016
results.IronScheme new run Nov 30, 2016
results.Kawa new run Nov 30, 2016
results.Larceny new run Nov 30, 2016
results.MIT new run Nov 30, 2016
results.Mosh new run Nov 30, 2016
results.Petite new run Nov 30, 2016
results.Picrin new run Nov 30, 2016
results.RScheme new run Nov 30, 2016
results.Racket fix runs of vicare and racket Nov 30, 2016
results.Rhizome new run Nov 30, 2016
results.S9fES new run Nov 30, 2016
results.Sagittarius new run Nov 30, 2016
results.Scheme48 new run Nov 30, 2016
results.Stalin new run Nov 30, 2016
results.TinyScheme new run Nov 30, 2016
results.Vicare new run Dec 1, 2016
results.Ypsilon new run Nov 30, 2016
summarize.sch Commit based on Larceny May 4, 2016
summarize2.sch Commit based on Larceny May 4, 2016

README.org

R7RS Benchmarks

Benchmarks for various Scheme implementations. Taken with kind permission from the Larceny project, based on the Gabriel and Gambit benchmarks.

See the results here

Running the tests

Just run

./bench <scheme> <test>

Schemes that should work:

This should result in a file ./results.<scheme>.

All of these Schemes are packaged for ArchLinux. The tests are run with whatever that package produces.

Run

make csv

to produce a file all.csv with the test results (<scheme>,<test>,<seconds>).

Limiting compile-time and run-time

The environment variable CPU_TIME can be set, to limit the time for compilation and for running (each individually).

CPU_TIME=3600 ./bench chez all

Path to executables

You can set an environment variable to specify the path to each Scheme.

LARCENY=/tmp/larceny/larceny MIT=/tmp/mit/mit-scheme ./bench "mit larceny" "fib ack"

Notes for specific implementations

Chicken

The chicken test code assumes the presence of

  • vector-lib
  • r7rs

Install them by running

chicken-install vector-lib r7rs

Racket

The racket test code assumes the presence of https://github.com/lexi-lambda/racket-r7rs.git.

Install the r7rs package installation-wide.

Run as root:

raco pkg install -i r7rs r7rs-lib

IronScheme

Precompile system libraries (optional). It is still going to be slow.

echo "(compile-system-libraries)" | mono IronScheme.Console-v4.exe

The default binary for IronScheme (can be changed by exporting IRONSCHEME in your shell before running bench) is called ironscheme.

If you unpack IronScheme in your home, you can create a shell script like the following:

#!/bin/bash
mono ~/IronScheme/IronScheme.Console-v4.exe -nologo -emacs $*

and put that somewhere in your $PATH.

Stalin

Before calling Stalin, the code is run through alexpander (by default using Chicken’s csi). Then stalin is invoked on the result.

Unsupported Schemes

Owl Lisp

Missing a lot of necessary functions, read for example.

TinyScheme

Problems with redirecting input, read chokes. No timing functions.