#! /bin/sh

# Copyright 1997,1998 Alexandre Oliva <oliva@dcc.unicamp.br>

# This file is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

# Runs the Guarana performance test program

# The following program names are assumed:
#  jg: Kaffe+Guarana with JIT
#  jk: Kaffe with JIT
#  ig: Kaffe+Guarana without JIT
#  ik: Kaffe without JIT
#  java: Sun JDK

# usage: ./run

test x"${1+set}" = x"set" && suffix=$1
test x"${2+set}" = x"set" && err=$2
echo "Kaffe JIT without Guarana"
jk performance
echo
echo "Kaffe JIT with Guarana"
jg performance
echo
echo "JDK"
java performance
echo
echo "Kaffe intrp without Guarana"
ik performance
echo
echo "Kaffe intrp with Guarana"
ig performance
echo
echo "Kaffe JIT with Guarana and nullMetaPerformance"
jg nullMetaPerformance
echo
echo "Kaffe intrp with Guarana and nullMetaPerformance"
ig nullMetaPerformance
echo
echo "Kaffe JIT with Guarana and MetaLogger"
CLASSPATH=../tutorial-src:. jg logMetaPerformance
echo
echo "Kaffe intrp with Guarana and MetaLogger"
CLASSPATH=../tutorial-src:. ig logMetaPerformance
