2007-11-04 17:00:11 -05:00
|
|
|
#!/usr/bin/env ikarus --r6rs-script
|
|
|
|
|
|
|
|
(import (ikarus))
|
|
|
|
|
2008-01-19 15:44:38 -05:00
|
|
|
;(define all-benchmarks
|
|
|
|
; '(ack array1 bibfreq boyer browse cat compiler conform cpstak ctak dderiv
|
|
|
|
; deriv destruc diviter divrec dynamic earley fft fib fibc fibfp
|
|
|
|
; fpsum gcbench gcold graphs lattice matrix maze mazefun mbrot
|
|
|
|
; nbody nboyer nqueens ntakl nucleic paraffins parsing perm9 peval
|
|
|
|
; pi pnpoly primes puzzle quicksort ray sboyer scheme simplex
|
|
|
|
; slatex string sum sum1 sumfp sumloop tail tak takl trav1 trav2
|
|
|
|
; triangl wc))
|
|
|
|
|
2007-11-04 17:00:11 -05:00
|
|
|
(define all-benchmarks
|
2008-01-19 15:44:38 -05:00
|
|
|
'(cat tail wc slatex))
|
2007-11-04 17:00:11 -05:00
|
|
|
|
2007-11-24 04:42:42 -05:00
|
|
|
|
|
|
|
(define cmd
|
|
|
|
"../src/ikarus -b ../scheme/ikarus.boot --r6rs-script bench.ss ~a")
|
2007-11-04 17:00:11 -05:00
|
|
|
|
|
|
|
(for-each
|
|
|
|
(lambda (x)
|
2007-12-25 05:03:41 -05:00
|
|
|
(fprintf (current-error-port) "running ~s\n" x)
|
2007-11-05 22:49:38 -05:00
|
|
|
(for-each
|
|
|
|
(lambda (_)
|
2007-11-17 12:53:37 -05:00
|
|
|
(unless (zero? (system (format cmd x)))
|
2007-12-25 05:03:41 -05:00
|
|
|
(fprintf (current-error-port) "ERROR: ~s failed\n" x)))
|
2007-11-05 22:49:38 -05:00
|
|
|
(make-list 5)))
|
2007-11-04 17:00:11 -05:00
|
|
|
all-benchmarks)
|
|
|
|
|