From 45e885c144b92575ad07bab33993d74f71106809 Mon Sep 17 00:00:00 2001 From: Daniel Lemire Date: Thu, 3 Jan 2019 13:00:35 -0500 Subject: [PATCH] Updating stack plot. --- scripts/stackbar.gnuplot | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/scripts/stackbar.gnuplot b/scripts/stackbar.gnuplot index b86f5998..1cb0c020 100644 --- a/scripts/stackbar.gnuplot +++ b/scripts/stackbar.gnuplot @@ -1,7 +1,7 @@ set term pdfcairo fontscale 0.8 noenhanced set output name set boxwidth 0.8 -set style fill solid +set style fill solid set ylabel "cycles per input byte" @@ -22,7 +22,7 @@ set ytics nomirror set yrange [0:] #set key right top; set key samplen 1 spacing 1 font ",10" -set key width -4 +set key width -4 set key height -0.3 #set key horizontal invert @@ -51,17 +51,14 @@ 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 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 + '' using (clamp($3-$8)) t " 1: just utf8" ls 2,\ + '' using (clamp($14 + $19 - $4)) t " 2: core" ls 4,\ + '' using (clamp($4 - $19)) t " 2: strings" ls 5,\ + '' using (clamp($4 - $14)):xtic(1) t " 2: numbers" ls 6 -#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 +# 1, 2 mem, 3 st1, 4 st2, 5 total +# 6, 7 mem, 8 st1, 9 st2,10 total // noutf8 +# 11, 12 mem, 13 st1, 14 st2, 15 total // nonumber +# 16, 17 mem, 18 st1, 19 st2, 20 total // nostring