diff options
author | mostang.com!davidm <mostang.com!davidm> | 2004-01-21 06:36:35 +0000 |
---|---|---|
committer | mostang.com!davidm <mostang.com!davidm> | 2004-01-21 06:36:35 +0000 |
commit | a54ee8800953d330752704157f58e8375d850b86 (patch) | |
tree | 9d650d04e39d9a5194485ba567c46b7347ecaca2 /tests/perf-startup | |
parent | f928eec36a362d66cacef4d01fbe1cf7b7b4f93d (diff) | |
download | libunwind-a54ee8800953d330752704157f58e8375d850b86.tar.gz |
(Logical change 1.157)
Diffstat (limited to 'tests/perf-startup')
-rw-r--r-- | tests/perf-startup | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/perf-startup b/tests/perf-startup new file mode 100644 index 00000000..c3707487 --- /dev/null +++ b/tests/perf-startup @@ -0,0 +1,19 @@ +#!/bin/sh +platform=$1 +LIBUNWIND=../src/.libs/libunwind.so +LIBUNWIND_PLAT=../src/.libs/libunwind-$platform.so +warmup=$(./forker 2000 /bin/true | cut -f1 -d' ') + +nsec1=$(./forker 2000 /bin/true | cut -f1 -d' ') +echo -e \"/bin/true\""\t\t\t\t\t\t": $nsec1 nsec/execution + +nsec2=$(LD_PRELOAD=$LIBUNWIND ./forker 2000 /bin/true | cut -f1 -d' ') +echo -e \"LD_PRELOAD=$LIBUNWIND /bin/true\""\t": $nsec2 nsec/execution + +nsec3=$(LD_PRELOAD=$LIBUNWIND_PLAT ./forker 2000 /bin/true | cut -f1 -d' ') +echo -e \"LD_PRELOAD=$LIBUNWIND_PLAT /bin/true\""\t": $nsec3 nsec/execution + +echo + +echo -e "Overhead of preloading $LIBUNWIND\t: " $(($nsec2 - $nsec1)) nsec +echo -e "Overhead of preloading $LIBUNWIND_PLAT\t: " $(($nsec3 - $nsec1)) nsec |