dfc1125565c36da11ddc43d72233a361a0d03aa2
10 echo "using $NR_CPUS processor(s)"
11 echo "using $NR_EVENTS events per cpu"
16 echo ">running without markers"
17 t1
=$
(/usr
/bin
/time -f%e usttrace .
/bench1
$NR_CPUS $NR_EVENTS 2>&1 1> /dev
/null
)
23 echo ">running with markers activated"
24 t2
=$
(/usr
/bin
/time -f%e usttrace .
/bench2
$NR_CPUS $NR_EVENTS 2>&1 1> /dev
/null
)
30 penalty
=$
(echo "$t2 - $t1;" |
bc)
31 echo "time penalty=$penalty sec"
33 #event = penalty / (nr_events * nr_cpus)
34 event
=$
(echo "scale=8; ($penalty / ($NR_EVENTS * $NR_CPUS));" |
bc)
35 echo "time penalty per event=$event sec"
This page took 0.034033 seconds and 4 git commands to generate.