mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-10-31 23:29:26 +01:00
Restore tests/perf-startup.
Another file that got wiped out during the Bitkeeper->CVS->GIT translation.
This commit is contained in:
parent
236e370dc5
commit
9e927e7087
1 changed files with 19 additions and 0 deletions
|
@ -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
|
Loading…
Reference in a new issue