diff options
author | Joshua Haberman <joshua@reverberate.org> | 2009-08-12 13:47:24 -0700 |
---|---|---|
committer | Joshua Haberman <joshua@reverberate.org> | 2009-08-12 13:47:24 -0700 |
commit | 2282d2489bd8db3cd4ddbe0dd813732bffcf6452 (patch) | |
tree | 814fc94cd8ca4993363fb0ebe45b14e320a7a792 /perf-tests.sh | |
parent | 89a6c6d71f87bab63ee17c60f0feb56215f5c116 (diff) |
Refactoring: unify upb_msg.
The cost is that a upb_msg will now always have an overhead
of 2*sizeof(void*). This is comparable to proto2 overhead.
The benefit is that upb_msg is now self-describing, and
read-only algorithms can now operate on a upb_msg regardless
of the memory-management scheme.
Also, upb_array and upb_string now know inherently if they
own their associated memory, and upb_array has a generic
pointer for memory management purposes like upb_msg does.
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 28873f2..1d8f4a8 100755 --- a/perf-tests.sh +++ b/perf-tests.sh @@ -11,23 +11,23 @@ fi rm -f perf-tests.out make clean -echo "-DNDEBUG -msse3" > perf-cppflags +echo "-O3 -DNDEBUG -msse3" > perf-cppflags make $MAKETARGET make benchmark | sed -e 's/^/plain./g' | tee -a perf-tests.out make clean -echo "-DNDEBUG -fomit-frame-pointer -msse3" > perf-cppflags +echo "-O3 -DNDEBUG -fomit-frame-pointer -msse3" > 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 "-DNDEBUG -msse3 -m32" > perf-cppflags + echo "-O3 -DNDEBUG -msse3 -m32" > perf-cppflags make upb_benchmarks make benchmark | sed -e 's/^/plain32./g' | tee -a perf-tests.out make clean - echo "-DNDEBUG -fomit-frame-pointer -msse3 -m32" > perf-cppflags + echo "-O3 -DNDEBUG -fomit-frame-pointer -msse3 -m32" > perf-cppflags make upb_benchmarks make benchmark | sed -e 's/^/omitfp32./g' | tee -a perf-tests.out fi |