diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-09 11:39:55 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-09 11:39:55 -0800 |
commit | f858a8f287413b5184a911506f406fa0460d1b1d (patch) | |
tree | c4bf0e73866fb721706edaea9b7deb1eda96662d /perf-tests.sh | |
parent | 6e308b7e805e1baf0a63a76546f902ce0bc81501 (diff) |
Precompute bit offset and bitmask for a small perf improvement.
Diffstat (limited to 'perf-tests.sh')
-rwxr-xr-x | perf-tests.sh | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/perf-tests.sh b/perf-tests.sh index 1d8f4a8..3833572 100755 --- a/perf-tests.sh +++ b/perf-tests.sh @@ -3,6 +3,7 @@ # multiple times with a few different compiler flag combinations. # The output will be dumped to stdout and to perf-tests.out. +set -e MAKETARGET=benchmarks if [ x$1 == xupb ]; then MAKETARGET=upb_benchmarks @@ -11,23 +12,23 @@ fi rm -f perf-tests.out make clean -echo "-O3 -DNDEBUG -msse3" > perf-cppflags +echo "-O3 -DNDEBUG -msse3 -DUPB_THREAD_UNSAFE" > perf-cppflags make $MAKETARGET make benchmark | sed -e 's/^/plain./g' | tee -a perf-tests.out make clean -echo "-O3 -DNDEBUG -fomit-frame-pointer -msse3" > perf-cppflags +echo "-O3 -DNDEBUG -fomit-frame-pointer -msse3 -DUPB_THREAD_UNSAFE" > perf-cppflags make $MAKETARGET make benchmark | sed -e 's/^/omitfp./g' | tee -a perf-tests.out if [ x`uname -m` == xx86_64 ]; then make clean - echo "-O3 -DNDEBUG -msse3 -m32" > perf-cppflags + echo "-O3 -DNDEBUG -msse3 -m32 -DUPB_THREAD_UNSAFE" > perf-cppflags make upb_benchmarks make benchmark | sed -e 's/^/plain32./g' | tee -a perf-tests.out make clean - echo "-O3 -DNDEBUG -fomit-frame-pointer -msse3 -m32" > perf-cppflags + echo "-O3 -DNDEBUG -fomit-frame-pointer -msse3 -m32 -DUPB_THREAD_UNSAFE" > perf-cppflags make upb_benchmarks make benchmark | sed -e 's/^/omitfp32./g' | tee -a perf-tests.out fi |