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)
18 t1
=$
(/usr
/bin
/time -f%e .
/bench1
$NR_CPUS $NR_EVENTS 2>&1 1> /dev
/null
)
24 echo ">running with markers activated"
25 t2
=$
(/usr
/bin
/time -f%e usttrace .
/bench2
$NR_CPUS $NR_EVENTS 2>&1 1> /dev
/null
)
31 penalty
=$
(echo "$t2 - $t1;" |
bc)
32 echo "time penalty=$penalty sec"
34 #event = penalty / (nr_events * nr_cpus)
35 event
=$
(echo "scale=10; ($penalty / ($NR_EVENTS * $NR_CPUS));" |
bc)
36 echo "time penalty per event=$event sec"
This page took 0.034407 seconds and 5 git commands to generate.