add picrin to benchmarkable system

This commit is contained in:
Sunrin SHIMURA (keen) 2015-01-18 04:39:43 +00:00
parent 65b665d2be
commit 84e234dda4
1 changed files with 26 additions and 0 deletions

View File

@ -96,6 +96,7 @@ setup ()
FOMENT=${FOMENT:-"foment"} FOMENT=${FOMENT:-"foment"}
HUSK=${HUSK:-"huski"} HUSK=${HUSK:-"huski"}
CHIBI=${CHIBI:-"chibi-scheme"} CHIBI=${CHIBI:-"chibi-scheme"}
PICRIN=${PICRIN:-"picrin"}
} }
setup setup
@ -112,6 +113,7 @@ Usage: bench [-r runs] <system> <benchmark>
sagittarius for Sagittarius Scheme sagittarius for Sagittarius Scheme
gauche for Gauche Scheme gauche for Gauche Scheme
picrin for picrin Scheme
all for all of the above all for all of the above
<benchmark> is the name of the benchmark(s) to run: <benchmark> is the name of the benchmark(s) to run:
@ -234,6 +236,20 @@ chibi_exec ()
# ----------------------------------------------------------------------------- # -----------------------------------------------------------------------------
# -----------------------------------------------------------------------------
# Definitions specific to picrin Scheme
picrin_comp ()
{
:
}
picrin_exec ()
{
time "${PICRIN}" "$1" < "$2"
}
## Arg processing... ## Arg processing...
if [ "$#" -lt 2 ]; then if [ "$#" -lt 2 ]; then
error '>>> At least two command line arguments are needed' error '>>> At least two command line arguments are needed'
@ -326,6 +342,16 @@ sagittarius)NAME='Sagittarius'
EXECCOMMANDS="" EXECCOMMANDS=""
;; ;;
picrin)NAME='picrin'
COMP=picrin_comp
EXEC=picrin_exec
COMPOPTS=""
EXTENSION="sch"
EXTENSIONCOMP="sch"
COMPCOMMANDS=""
EXECCOMMANDS=""
;;
esac esac
{ {