diff --git a/scripts/plots/skylake/stackedperf.pdf b/scripts/plots/skylake/stackedperf.pdf index f61c1efda..364a9033a 100644 Binary files a/scripts/plots/skylake/stackedperf.pdf and b/scripts/plots/skylake/stackedperf.pdf differ diff --git a/scripts/refreshplot.sh b/scripts/refreshplot.sh new file mode 100755 index 000000000..4c7b1c440 --- /dev/null +++ b/scripts/refreshplot.sh @@ -0,0 +1,8 @@ +#!/bin/bash +[[ "$(command -v gnuplot)" ]] || { echo "gnuplot is not installed" 1>&2 ; exit 1; } + +SCRIPTPATH="$( cd "$(dirname "$0")" ; pwd -P )" + +gnuplot -e "filename='plots/skylake/parselinuxtable.txt';name='plots/skylake/stackedperf.pdf'" $SCRIPTPATH/stackbar.gnuplot + +echo "plots/skylake/stackedperf.pdf" \ No newline at end of file diff --git a/scripts/stackbar.gnuplot b/scripts/stackbar.gnuplot index a02e64e0d..fea6fc3b2 100644 --- a/scripts/stackbar.gnuplot +++ b/scripts/stackbar.gnuplot @@ -1,4 +1,4 @@ -set term pdfcairo fontscale 0.5 noenhanced +set term pdfcairo fontscale 0.7 noenhanced set output name set boxwidth 0.8 set style fill solid @@ -20,30 +20,44 @@ set xtics nomirror set ytics nomirror set yrange [0:] +#set key right top; +set key samplen 1 spacing 1.5 # font ",12" +set key width -2 +set key maxrows 4 +set key noenhanced -#set key right -set key outside +set key Left at 14,4.2 #at 5.5,4 +#set key right top +#set key outside +set key invert set style data histograms set style histogram rowstacked set xtic rotate by 300 scale 1 -set style line 1 lt rgb "#A00000" lw 1 pt 1 ps 1 -set style line 2 lt rgb "#00A000" lw 1 pt 1 ps 1 -set style line 3 lt rgb "#5060D0" lw 1 pt 1 ps 1 -set style line 4 lt rgb "red" lw 1 pt 1 ps 1 -set style line 5 lt rgb "#808000" lw 1 pt 1 ps 1 -set style line 6 lt rgb "#00008B" lw 1 pt 1 ps 1 -set style line 7 lt rgb "black" lw 1 pt 1 ps 1 -set style line 8 lt rgb "blue" lw 1 pt 1 ps 1 -set style line 9 lt rgb "violet" lw 1 pt 1 ps 1 +set style line 1 lt rgb "#A00000" +set style line 2 lt rgb "#00A000" +set style line 3 lt rgb "orange" +set style line 4 lt rgb "#5060D0" +set style line 5 lt rgb "#0099FB"# "#00008B" +set style line 6 lt rgb "black" +set style line 7 lt rgb "blue" lw 1 pt 1 ps 1 +set style line 8 lt rgb "#5060D0" lw 1 pt 1 ps 1 + +clamp(a) = (a < 0) ? 0 : a # plot filename using 3 t "stage 1" ls 2, '' using 4 t "stage 2" ls 3, '' using 5:xtic(1) t "stage 3" ls 1 -plot filename using 8 t "stage 1 without utf8 validation" ls 1, '' using ($3-$8) t "utf8 validation (stage 1)" ls 2, '' using 4 t "stage 2" ls 3, '' using ($20 + $15 - $5) t "stage 3 (no number or string)" ls 4, '' using ($5 - $20) t "string parsing (stage 3)" ls 5, '' using ($5 - $15):xtic(1) t "number parsing (stage 3)" ls 6 +plot filename using 9 t "1: no utf8" ls 1,\ + '' using (clamp($3-$9)) t "1: just utf8" ls 2,\ + '' using 4 t "stage 2" ls 3,\ + '' using (clamp($23 + $17 - $5)) t "3: core" ls 4,\ + '' using (clamp($5 - $23)) t "3: strings" ls 5,\ + '' using (clamp($5 - $17)):xtic(1) t "3: numbers" ls 6 -# 1, 2 mem, 3 st1, 4 st2, 5 st3 -# 6, 7 mem, 8 st1, 9 st2, 10 st3 // noutf8 -# 11, 12 mem, 13 st1, 14 st2, 15 st3 // nonumber -# 16, 17 mem, 18 st1, 19 st2, 20 st3 // nostring -# string: $5 - $20 , number $5 - $15, no string no number $5 - ($5 - $20) - ($5 - $15) = $20 + $15 - $5 +#plot filename using (clamp($5 - $23)):xtic(1) t "stage 3: just string parsing" ls 5 +# 1, 2 mem, 3 st1, 4 st2, 5 st3, 6 total +# 7, 8 mem, 9 st1, 10 st2, 11 st3, 12 total // noutf8 +# 13, 14 mem, 15 st1, 16 st2, 17 st3, 18 total // nonumber +# 19, 20 mem, 21 st1, 22 st2, 23 st3, 24 total // nostring +# string: $5 - $23 , number $5 - $17, no string no number $5 - ($5 - $20) - ($5 - $15) = $23 + $17 - $5