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 6d4bf8b Mar 22, 2017 @ecraven new chicken 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 add guile-2.2 as separate target Mar 20, 2017
README.org Add Cyclone Scheme to readme (#19) Aug 29, 2016
all.csv new chicken run Mar 22, 2017
bench new chicken run Mar 22, 2017
benchmark.html new chicken run Mar 22, 2017
results.Bigloo new run Mar 15, 2017
results.Bones new run Mar 15, 2017
results.Chez new run Mar 15, 2017
results.Chibi new run Mar 15, 2017
results.Chicken new chicken run Mar 22, 2017
results.ChickenCSI new run Mar 15, 2017
results.Cyclone new run Mar 15, 2017
results.Foment new run Mar 15, 2017
results.GambitC new run Mar 15, 2017
results.Gauche new run Mar 15, 2017
results.Guile new run Mar 15, 2017
results.Guile2 new run Mar 15, 2017
results.IronScheme new run Mar 15, 2017
results.Kawa new run Mar 15, 2017
results.Larceny new run Mar 15, 2017
results.MIT new run Mar 15, 2017
results.Mosh new run Mar 15, 2017
results.Petite new run Mar 15, 2017
results.Picrin new run Mar 15, 2017
results.RScheme new run Mar 15, 2017
results.Racket new run for racket Mar 20, 2017
results.Rhizome new run Mar 15, 2017
results.S9fES new run Mar 15, 2017
results.Sagittarius new run Mar 15, 2017
results.Scheme48 new run Mar 15, 2017
results.Stalin new run Mar 15, 2017
results.TinyScheme new run Mar 15, 2017
results.Vicare new run Mar 15, 2017
results.Ypsilon new run Mar 15, 2017
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.