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
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
inputs Update chudnovsky runs to 20 instead of 2. Sep 7, 2017
outputs Make sure ./outputs exists May 4, 2016
src Use r7rs compatibility libraries in chez Apr 3, 2018
.gitignore Do not ignore results.* and *.csv any more May 31, 2016
Makefile new run Sep 13, 2017
Makefile.schemes new run Mar 1, 2018
README.org Add Cyclone Scheme to readme (#19) Aug 29, 2016
all.csv fixed racket run Mar 1, 2018
bench Use r7rs compatibility libraries in chez Apr 3, 2018
benchmark.html new run Sep 13, 2017
index.html nicer visualization Mar 1, 2018
results.Bigloo new run Mar 1, 2018
results.Bones new run Mar 1, 2018
results.Chez new run Mar 1, 2018
results.Chibi new run Mar 1, 2018
results.Chicken new run Mar 1, 2018
results.ChickenCSI new run Mar 1, 2018
results.Cyclone new run Mar 1, 2018
results.Femtolisp new run Mar 1, 2018
results.Foment new run Mar 1, 2018
results.GambitC new run Mar 1, 2018
results.Gauche new run Mar 1, 2018
results.Gerbil new run Mar 1, 2018
results.Guile new run Mar 1, 2018
results.IronScheme new run Mar 1, 2018
results.Kawa new run Mar 1, 2018
results.Larceny new run Mar 1, 2018
results.MIT new run Mar 1, 2018
results.Mosh new run Mar 1, 2018
results.Petite new run Mar 1, 2018
results.Picrin new run Mar 1, 2018
results.RScheme new run Mar 1, 2018
results.Racket fixed racket run Mar 1, 2018
results.Rhizome new run Mar 1, 2018
results.S9fES new run Mar 1, 2018
results.SISC new run Mar 1, 2018
results.Sagittarius new run Mar 1, 2018
results.Scheme48 new run Mar 1, 2018
results.Stalin new run Mar 1, 2018
results.TinyScheme new run Mar 1, 2018
results.Ypsilon new run Mar 1, 2018
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.