echo "<h3>Statistic summary</h3>"
echo "<table border=\"1\" cellpadding=\"5\" cellspacing=\"2\" width=\"100%\">"
- echo "<thead><tr><th width=\"12%\">Load<br>(%)</th><th width=\"12%\">Minimum<br>(us)</th><th width=\"12%\">Average<br>(us)</th><th width=\"12%\">Maximun<br>(us)</th><th width=\"12%\">Standard Dev.<br>(us)</th><th width=\"12%\">25th %<br>(us)</th><th width=\"12%\">Median<br>(us)</th><th width=\"12%\">75th %<br>(us)</th></tr></thead>"
+ echo "<thead><tr><th width=\"12%\">Load<br>(%)</th><th width=\"12%\">Minimum<br>(µs)</th><th width=\"12%\">Average<br>(µs)</th><th width=\"12%\">Maximum<br>(µs)</th><th width=\"12%\">Standard Dev.<br>(µs)</th><th width=\"12%\">25th %<br>(µs)</th><th width=\"12%\">Median<br>(µs)</th><th width=\"12%\">75th %<br>(µs)</th></tr></thead>"
echo "<tbody>"
awk '{ printf "<tr>"; for (i=0; i<NF; i++) printf "<td>%s</td>", $(i+1); printf "</tr>\n" }' $tab
echo "</tbody>"
done
+echo "<p>.</p>
echo "</body>"
echo "</html>"
done
;;
-r)
- awk -F\" '/test='$2';;/ {print $2}' $0
+ awk -F\" '/test='$(echo $2 | sed 's/\([+.*]\)/\\\0/g')';;/ {print $2}' $0
;;
*)
case "$*" in
BEGIN {
OFS=","
if (!nohead) {
- print "Test", "Dedicated core(s)", "Load (%)", "Minimum (us)", "Average (us)", "Maximun (us)", "Standard Dev. (us)", "25th % (us)", "Median (us)", "75th % (us)"
+ print "Test", "Dedicated core(s)", "Load (%)", "Minimum (µs)", "Average (µs)", "Maximum (µs)", "Standard Dev. (µs)", "25th % (µs)", "Median (µs)", "75th % (µs)"
}
}
test=$(echo $exe | sed 's/\.exe//')
name=$test-${dcore}k-${load}%
echo -e "\033[0;1mTest $test\033[0;0m"
- ./getinfo.sh | tee $name.log
+ date | tee $name.log
+ ./getinfo.sh | tee -a $name.log
echo "CPU load: $load% ($lcpu/$nbcpu)" | tee -a $name.log
{ ./$exe -d 1 -k $dcore -n 10000 -s -o $name.dat | tee -a $name.log; \
kill -2 $(ps -e | awk '/[l]oad/ || /[s]leep/ { print $1 }') 2>/dev/null; } &
./load -n $lcpu >/dev/null
echo "Cleaning..."
+ date | tee -a $name.log
sleep 1
done
}