| 1 |
#!/usr/bin/env ikarus --r6rs-script |
| 2 |
;;; Ikarus Scheme -- A compiler for R6RS Scheme. |
| 3 |
;;; Copyright (C) 2006,2007,2008 Abdulaziz Ghuloum |
| 4 |
;;; |
| 5 |
;;; This program is free software: you can redistribute it and/or modify |
| 6 |
;;; it under the terms of the GNU General Public License version 3 as |
| 7 |
;;; published by the Free Software Foundation. |
| 8 |
;;; |
| 9 |
;;; This program is distributed in the hope that it will be useful, but |
| 10 |
;;; WITHOUT ANY WARRANTY; without even the implied warranty of |
| 11 |
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 12 |
;;; General Public License for more details. |
| 13 |
;;; |
| 14 |
;;; You should have received a copy of the GNU General Public License |
| 15 |
;;; along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 |
|
| 17 |
|
| 18 |
(import (ikarus)) |
| 19 |
|
| 20 |
(define all-benchmarks |
| 21 |
'(ack array1 bibfreq boyer browse cat compiler conform cpstak ctak dderiv |
| 22 |
deriv destruc diviter divrec dynamic earley fft fib fibc fibfp |
| 23 |
fpsum gcbench #|gcold|# graphs lattice matrix maze mazefun mbrot |
| 24 |
nbody nboyer nqueens ntakl nucleic paraffins parsing perm9 peval |
| 25 |
pi pnpoly primes puzzle quicksort ray sboyer scheme simplex |
| 26 |
slatex string sum sum1 sumfp sumloop sumloop2 tail tak takl |
| 27 |
trav1 trav2 triangl wc)) |
| 28 |
|
| 29 |
;(define all-benchmarks |
| 30 |
; '(cat tail wc slatex)) |
| 31 |
|
| 32 |
|
| 33 |
(define cmd |
| 34 |
"../src/ikarus -b ../scheme/ikarus.boot --r6rs-script bench.ss ~a") |
| 35 |
|
| 36 |
(for-each |
| 37 |
(lambda (x) |
| 38 |
(fprintf (current-error-port) "running ~s\n" x) |
| 39 |
(for-each |
| 40 |
(lambda (_) |
| 41 |
(unless (zero? (system (format cmd x))) |
| 42 |
(fprintf (current-error-port) "ERROR: ~s failed\n" x))) |
| 43 |
(make-list 5))) |
| 44 |
all-benchmarks) |
| 45 |
|