go.sh scripts of several benchmarks modified to pick up $CC, $CFLAGS, $CXXFLAGS,...
[phoronix-static.git] / bullet / go.sh
blob3a49a787f74df4d80b19d0ff44c121994191039f
1 #!/bin/bash -x
3 # Copyright (C) 2011 Sebastian Pop <sebpop@gmail.com>.
4 # This program is free software; you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation; either version 3 of the License, or
7 # (at your option) any later version.
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 # GNU General Public License for more details. A copy of this license
13 # can be downloaded from http://www.gnu.org/copyleft/gpl.html
15 p=`pwd`
16 rm -rf bullet-2.75
17 tar -zxf bullet-2.75.tgz
18 cd bullet-2.75
19 cmake .
20 make AppBenchmarks -j $procs CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS"
21 cd Demos/Benchmarks
22 before=`date +%s.%N`
23 ./AppBenchmarks > $p/log 2>&1
24 after=`date +%s.%N`
25 echo "" >> $p/log
26 echo "bullet run time: `echo "$after - $before" | bc`" >> $p/log
27 sed -i -e'/\.\./d' -e'/BenchmarkDemo:/d' -e'/rays in/d' -e'/Profil/d' -e'/--/d' -e'/Unaccounted:/d' $p/log
28 cd $p; rm -rf bullet-2.75