prehash-for-perfect-hash: add truly-thes.
[sbcl.git] / tests / benchmark.sh
blobea7af9f68b6a2b7d391061574d57ba25b7c6af93
1 #!/bin/sh
3 # This is copy-and-pasted from parallel-exec, removing:
4 # - use of SB-APROF, SB-SPROF
5 # - vop usage counts, GC stop-the-world timing
6 # - shell tests
7 # - anything else extraneous to running the tests.
8 # Obviously it would be better if some of this
9 # logic could be shared, especially the
10 # CHOOSE-ORDER function.
12 if [ $# -ne 1 ]
13 then
14 echo $0: Need arg
15 exit 1
18 logdir=${SBCL_PAREXEC_TMP:-$HOME}/sbcl-test-logs-$$
19 echo ==== Writing logs to $logdir ====
20 junkdir=${SBCL_PAREXEC_TMP:-/tmp}/junk
21 mkdir -p $junkdir $logdir
23 case `uname` in
24 CYGWIN* | WindowsNT | MINGW* | MSYS*)
25 echo ";; Using -j$1"
26 echo "LOGDIR=$logdir" >$logdir/Makefile
27 ../run-sbcl.sh --script genmakefile.lisp >>$logdir/Makefile
28 exec $GNUMAKE -k -j $1 -f $logdir/Makefile
30 esac
32 export TEST_DIRECTORY SBCL_HOME
33 TEST_DIRECTORY=$junkdir SBCL_HOME=../obj/sbcl-home exec ../src/runtime/sbcl \
34 --noinform --core ../output/sbcl.core \
35 --no-userinit --no-sysinit --noprint --disable-debugger $logdir $* \
36 < benchmark.lisp