Lines Matching refs:tmp
209 adb shell cat /sdcard/rsTimes/${TEST_NAMES[$testId]}_DATA.txt > timing.tmp
217 AVG=`cat timing.tmp | awk '{sum+=$2}END{printf "%.2f",sum/NR}'`
218 …STDCOEF=`cat timing.tmp | awk '{sum+=$2;sos+=$2*$2}END{printf "%.2f",sqrt((sos-sum*sum/NR)/NR)/(su…
221 echo "# temporary file" > plot.tmp
222 echo "set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 7 ps 1" >> plot.tmp # --- blue
223 echo "set style line 2 lc rgb '#ff0000' lt 1 lw 2" >> plot.tmp # --- green
224 echo "set title \"${TEST_NAMES[$testId]} \(avg=$AVG ms, stdcoef=$STDCOEF%\)\"" >> plot.tmp
225 echo "set xlabel \"Iteration #\"" >> plot.tmp
226 echo "set ylabel \"Elapsed Time (ms)\"" >> plot.tmp
228 echo "set yrange [0.0:*]" >> plot.tmp
231 echo "set fit quiet" >> plot.tmp
232 echo "set fit logfile '/dev/null'" >> plot.tmp
233 echo "f(x) = a*x + b" >> plot.tmp
234 echo "fit f(x) 'timing.tmp' using 1:2 via a, b" >> plot.tmp
235 echo "string = sprintf('%.3fe-3*x+%.3f', a*1000, b)" >> plot.tmp
236 … echo "plot 'timing.tmp' with linespoints ls 1 title 'Data', f(x) ls 2 title string" >> plot.tmp
238 echo "plot 'timing.tmp' with linespoints ls 1 title 'Data'" >> plot.tmp
242 gnuplot -p plot.tmp
269 adb shell cat /sdcard/rsTimes/${TEST_NAMES[$testId]}_DATA.txt > timing.tmp
276 AVG=`cat timing.tmp | awk '{sum+=$2}END{printf "%.2f",sum/NR}'`
277 …STDCOEF=`cat timing.tmp | awk '{sum+=$2;sos+=$2*$2}END{printf "%.2f",sqrt((sos-sum*sum/NR)/NR)/(su…
280 echo "# temporary file" > plot.tmp
281 echo "set style line 1 lc rgb '#0060ad' lt 1 lw 2 pt 7 ps 1" >> plot.tmp # --- blue
282 echo "set style line 2 lc rgb '#ff0000' lt 1 lw 2" >> plot.tmp # --- green
283 echo "set title \"${TEST_NAMES[$testId]} \(avg=$AVG ms, stdcoef=$STDCOEF%\)\"" >> plot.tmp
284 echo "set xlabel \"Iteration #\"" >> plot.tmp
285 echo "set ylabel \"Elapsed Time (ms)\"" >> plot.tmp
287 echo "set yrange [0.0:*]" >> plot.tmp
290 echo "set fit quiet" >> plot.tmp
291 echo "set fit logfile '/dev/null'" >> plot.tmp
292 echo "f(x) = a*x + b" >> plot.tmp
293 echo "fit f(x) 'timing.tmp' using 1:2 via a, b" >> plot.tmp
294 echo "string = sprintf('%.3fe-3*x+%.3f', a*1000, b)" >> plot.tmp
295 … echo "plot 'timing.tmp' with linespoints ls 1 title 'Data', f(x) ls 2 title string" >> plot.tmp
297 echo "plot 'timing.tmp' with linespoints ls 1 title 'Data'" >> plot.tmp
301 gnuplot -p plot.tmp
308 rm -f plot.tmp
309 rm -f timing.tmp