Last active
August 29, 2015 13:57
-
-
Save rurban/9668411 to your computer and use it in GitHub Desktop.
parrot-bench
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat ../bench.sh | |
#!/bin/sh | |
if [ -n $1 ]; then | |
git clean -dxf 2>&1 >/dev/null | |
git checkout $1 2>&1 >/dev/null | |
else | |
make -s clean archclean 2>&1 >/dev/null | |
fi | |
perl Configure.pl --optimize --without-crypto --without-opengl 2>&1 >/dev/null \ | |
|| perl Configure.pl --optimize --without-crypto 2>&1 >/dev/null \ | |
|| perl Configure.pl --optimize --without-opengl 2>&1 >/dev/null \ | |
|| perl Configure.pl --optimize 2>&1 >/dev/null | |
make -j4 -s 2>/dev/null >/dev/null \ | |
|| (rm runtime/parrot/include/config.fpmc; make -s parrot) 2>/dev/null >/dev/null | |
make -s test_prep 2>/dev/null >/dev/null | |
echo $1 >> ../log.bench | |
if [ -e parrot ]; then | |
echo "loadavg " `cat /proc/loadavg` >> ../log.bench | |
time ../run-bench.sh >/dev/null 2>> ../log.bench | |
tail -n4 ../log.bench | |
else | |
echo 'no parrot' | |
fi | |
# master f8510c7: 0m44.284s | |
# rurban/6model 9055a9e: 0m43.407s | |
# rurban/pmc2c_orig 6cbf270: 0m43.767s | |
cat ../run-bench.sh | |
#!/bin/sh | |
for p in ../parrot-bench/*.pasm ../parrot-bench/*.pir | |
do | |
./parrot $p >/dev/null | |
done | |
parrot-bench/addit2.pir | |
parrot-bench/array_access.pir | |
parrot-bench/arriter.pir | |
parrot-bench/bench_newp.pasm | |
parrot-bench/dispatch.pir | |
parrot-bench/fib.pir | |
parrot-bench/freeze.pasm | |
parrot-bench/hamming.pir | |
parrot-bench/mops_intval.pasm | |
parrot-bench/mops.pasm | |
parrot-bench/oo5.pir | |
parrot-bench/oo6.pir | |
parrot-bench/oofib.pir | |
parrot-bench/primes2_i.pir | |
parrot-bench/stress1.pasm | |
parrot-bench/stress3.pasm | |
parrot-bench/vpm.pir | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment