diff options
author | Joshua Haberman <joshua@reverberate.org> | 2011-02-27 14:30:32 -0800 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2011-02-27 14:30:32 -0800 |
commit | 20b2a6bd0d94b987bda9e32f4da1cb00a4bcd00f (patch) | |
tree | 5e3e2f40716a7f723447ca58bfc06517edb93876 /perf-tests.sh | |
parent | 6942911f03ef638f0c5558c7610fae820df8658e (diff) |
Default to -O3 if user doesn't specify opt.
However if the user *does* specify a -O flag,
don't override the optimization setting for
upb_def.o to -Os like we usually do.
Diffstat (limited to 'perf-tests.sh')
-rwxr-xr-x | perf-tests.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perf-tests.sh b/perf-tests.sh index bfa8bd6..003f866 100755 --- a/perf-tests.sh +++ b/perf-tests.sh @@ -13,22 +13,22 @@ rm -f perf-tests.out if [ x`uname -m` = xx86_64 ]; then make clean - echo "-O3 -DNDEBUG -msse3 -m32" > perf-cppflags + echo "-DNDEBUG -m32" > 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 "-DNDEBUG -fomit-frame-pointer -m32" > perf-cppflags make upb_benchmarks make benchmark | sed -e 's/^/omitfp32./g' | tee -a perf-tests.out fi make clean -echo "-O3 -DNDEBUG -msse3" > perf-cppflags +echo "-DNDEBUG" > 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 "-DNDEBUG -fomit-frame-pointer" > perf-cppflags make $MAKETARGET make benchmark | sed -e 's/^/omitfp./g' | tee -a perf-tests.out |