| 1 |
This directory contains the Gambit benchmarks and benchmarking |
| 2 |
infrastructure, written by Marc Feeley. Will Clinger has hacked |
| 3 |
it up to run benchmarks on the machines used by the Larceny |
| 4 |
project, and has added several benchmarks beyond those |
| 5 |
distributed with Gambit. Abdulaziz Ghuloum converted them to |
| 6 |
R6RS libraries and added an ikarus-specific bench.ss for running |
| 7 |
the benchmarks under ikarus. |
| 8 |
|
| 9 |
Files and directories: |
| 10 |
|
| 11 |
* bench.ss: a script for running a benchmark |
| 12 |
* benchall.ss: a script for running all benchmarks |
| 13 |
* rnrs-benchmarks.ss: a library specifing the number of |
| 14 |
iterations that every benchmark should be run and some |
| 15 |
procedures (like run-benchmark) that the various benchmarks |
| 16 |
use. |
| 17 |
* rnrs-benchmarks/*: the actual benchmark libraries. |
| 18 |
* rn100, bib, parsing-data.ss: used by some benchmarks. |
| 19 |
|
| 20 |
To run a benchmark, type: |
| 21 |
|
| 22 |
$ ikarus --r6rs-script bench.ss <benchmark-name> |
| 23 |
|
| 24 |
Example: |
| 25 |
|
| 26 |
$ ikarus --r6rs-script bench.ss nucleic |
| 27 |
running stats for compile-nucleic: |
| 28 |
7 collections |
| 29 |
262 ms elapsed cpu time, including 84 ms collecting |
| 30 |
262 ms elapsed real time, including 84 ms collecting |
| 31 |
30095456 bytes allocated |
| 32 |
running stats for nucleic: |
| 33 |
154 collections |
| 34 |
840 ms elapsed cpu time, including 77 ms collecting |
| 35 |
842 ms elapsed real time, including 78 ms collecting |
| 36 |
640581192 bytes allocated |
| 37 |
|
| 38 |
To run all benchmarks, type: |
| 39 |
|
| 40 |
$ ikarus --r6rs-script benchall.ss |
| 41 |
|
| 42 |
Or, alternatively, run `make benchall` to run all benchmarks and |
| 43 |
append the results to the file 'timelog'. |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
The text that Ikarus's "time" macro and "time-it" procedure |
| 48 |
output is modeled after Chez Scheme's in order to facilitate |
| 49 |
interoperability with tools that parse benchmark data. |
| 50 |
|
| 51 |
BUGS: |
| 52 |
maze and nbody do not work yet because they require bitwise-and |
| 53 |
and make-polar. |
| 54 |
|
| 55 |
Aziz,,, |