File: perf-startup

package info (click to toggle)
android-platform-external-libunwind 10.0.0%2Br36-4.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,280 kB
  • sloc: ansic: 34,173; sh: 6,931; asm: 1,913; makefile: 842; cpp: 137
file content (19 lines) | stat: -rwxr-xr-x 727 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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' ')
printf "\"/bin/true\"\t\t\t\t\t\t: $nsec1 nsec/execution\n"

nsec2=$(LD_PRELOAD=$LIBUNWIND ./forker 2000 /bin/true | cut -f1 -d' ')
printf "\"LD_PRELOAD=$LIBUNWIND /bin/true\"\t: $nsec2 nsec/execution\n"

nsec3=$(LD_PRELOAD=$LIBUNWIND_PLAT ./forker 2000 /bin/true | cut -f1 -d' ')
printf "\"LD_PRELOAD=$LIBUNWIND_PLAT /bin/true\"\t: $nsec3 nsec/execution\n"

echo

printf "Overhead of preloading $LIBUNWIND\t: $(($nsec2 - $nsec1)) nsec\n"
printf "Overhead of preloading $LIBUNWIND_PLAT\t: $(($nsec3 - $nsec1)) nsec\n"