Benchmarks for various Scheme implementations. Taken with kind permission from the Larceny project, based on the Gabriel and Gambit benchmarks.
Branch: master
Clone or download
Latest commit 04f4dbf Nov 8, 2018
Permalink
Type Name Latest commit message Commit time
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 Improve CHICKEN coverage (#36) Oct 24, 2018
.gitignore Do not ignore results.* and *.csv any more May 31, 2016
Makefile new run Sep 13, 2017
Makefile.schemes remove mosh from makefiles, cannot successfully build (always segfaults) Oct 24, 2018
README.org Add Cyclone Scheme to readme (#19) Aug 29, 2016
all.csv new run Nov 8, 2018
bench Improve CHICKEN coverage (#36) Oct 24, 2018
benchmark.html new run Sep 13, 2017
index.html new run Nov 8, 2018
results.Bigloo new run Nov 8, 2018
results.Bones new run Nov 8, 2018
results.Chez new run Nov 8, 2018
results.Chibi new run Nov 8, 2018
results.Chicken new run Nov 8, 2018
results.ChickenCSI new run Nov 8, 2018
results.Cyclone new run Nov 8, 2018
results.Femtolisp new run Nov 8, 2018
results.Foment new run Nov 8, 2018
results.GambitC new run Nov 8, 2018
results.Gauche new run Nov 8, 2018
results.Gerbil new run Nov 8, 2018
results.Guile new run Nov 8, 2018
results.Guile3 new run Nov 8, 2018
results.IronScheme new run Nov 8, 2018
results.Kawa new run Nov 8, 2018
results.Larceny new run Nov 8, 2018
results.MIT new run Nov 8, 2018
results.Petite new run Nov 8, 2018
results.Picrin new run Nov 8, 2018
results.RScheme new run Nov 8, 2018
results.Racket new run Nov 8, 2018
results.Rhizome new run Nov 8, 2018
results.S9fES new run Nov 8, 2018
results.SISC new run Nov 8, 2018
results.Sagittarius new run Nov 8, 2018
results.Scheme48 new run Nov 8, 2018
results.Stalin new run Nov 8, 2018
results.TinyScheme new run Nov 8, 2018
results.Ypsilon new run Nov 8, 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.