1 | set terminal pdf color enhanced size 6.0in,4.0in font "Times,17"
|
---|
2 | #set terminal postscript portrait enhanced size 7.5, 10. color solid 9.5;
|
---|
3 | #set terminal wxt size 950,1250
|
---|
4 |
|
---|
5 | INDIR="build"
|
---|
6 | OUTDIR="build"
|
---|
7 |
|
---|
8 | SCALE=1024
|
---|
9 |
|
---|
10 | # common to all
|
---|
11 | set macros
|
---|
12 | set output OUTDIR."/plot-string-allocn.pdf"
|
---|
13 | set multiplot layout 1, 3 ;
|
---|
14 | set key outside top center horizontal
|
---|
15 | set grid
|
---|
16 |
|
---|
17 | # common to only first two graphs
|
---|
18 | set logscale x 2
|
---|
19 | #set mxtics 3 # 3 steps within each doubling (e.g. 3 steps of of 32 between 32 and 128 => tick on 32s in there)
|
---|
20 | set xlabel "Heap Used (B)"
|
---|
21 | set logscale y 10
|
---|
22 |
|
---|
23 | #
|
---|
24 | # CFA multisize
|
---|
25 | #
|
---|
26 |
|
---|
27 | set ylabel "Duration (ns)" offset 2,0
|
---|
28 | set yrange[35:125]
|
---|
29 | set ytics add (40, 50, 60, 70, 80, 90, 110, 120)
|
---|
30 |
|
---|
31 | set xrange[32:4096]
|
---|
32 | set xtics rotate by -90
|
---|
33 | set xtics ("" 32, "64 k" 64, "" 128, "256 k" 256, "" 512, "1 M" 1024, "" 2048, "4 M" 4096)
|
---|
34 |
|
---|
35 | # First each curve, then each default-expansion point
|
---|
36 | plot INDIR."/plot-string-allocn.dat" \
|
---|
37 | i 0 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "blue" pt 2 ps 1 lw 1, \
|
---|
38 | '' i 1 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \
|
---|
39 | '' i 2 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "brown" pt 8 ps 1 lw 1, \
|
---|
40 | '' i 3 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "black" pt 10 ps 1 lw 1, \
|
---|
41 | '' i 4 using ($3/SCALE):2 title columnheader(1) with linespoints lt rgb "magenta" pt 12 ps 1 lw 1, \
|
---|
42 | '' i 0 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "blue" pt 66 ps 2, \
|
---|
43 | '' i 1 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "red" pt 66 ps 2, \
|
---|
44 | '' i 2 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "brown" pt 66 ps 2, \
|
---|
45 | '' i 3 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "black" pt 66 ps 2, \
|
---|
46 | '' i 4 using ( ($4 == 1) ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "magenta" pt 66 ps 2
|
---|
47 |
|
---|
48 | unset ylabel
|
---|
49 |
|
---|
50 | unset xtics
|
---|
51 | unset ytics
|
---|
52 | unset yrange
|
---|
53 | unset xrange
|
---|
54 |
|
---|
55 |
|
---|
56 | #
|
---|
57 | # STL comparison
|
---|
58 | #
|
---|
59 |
|
---|
60 |
|
---|
61 | set yrange[40:85]
|
---|
62 | set ytics add (40, 45, 50, 55, 60, 65, 70, 75, 80, 85)
|
---|
63 | set mytics 90 # 90 steps within each decade (e.g. 90 steps of of 1 between 10 and 100 => tick on 1s in there)
|
---|
64 |
|
---|
65 | set xrange[64:4096]
|
---|
66 | set xtics rotate by -90
|
---|
67 | set xtics ("64 k" 64, "128 k" 128, "256 k" 256, "512 k" 512, "1 M" 1024, "2 M" 2048, "4 M" 4096)
|
---|
68 |
|
---|
69 | # skullduggeries:
|
---|
70 | # hardcoding chunk index and assuming data in the chunk (by hardcoding only the stl series title)
|
---|
71 | # series order is meaningless but important: achieves z-order readability and legend order acceptability
|
---|
72 |
|
---|
73 | plot INDIR."/plot-string-allocn.dat" \
|
---|
74 | i 8 using ($3/SCALE) :2 title "tradeoff" with lines lt rgb "#77000000" dt (2,2) lw 8, \
|
---|
75 | '' i 1 using ($3/SCALE) :2 title columnheader(1) with linespoints lt rgb "red" pt 3 ps 1 lw 1, \
|
---|
76 | '' i 6 using ( (strcol(4) eq "cfa") ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "red" pt 66 ps 2, \
|
---|
77 | '' i 6 using ($3/SCALE) :2 notitle with lines lt rgb "#77000000" dt (2,2) lw 8, \
|
---|
78 | '' i 6 using ( (strcol(4) eq "stl") ? ($3/SCALE) : 1/0 ):2 title "stl, len=50" with points lt rgb "red" pt 5 ps 1, \
|
---|
79 | '' i 3 using ($3/SCALE) :2 title columnheader(1) with linespoints lt rgb "black" pt 10 ps 1 lw 1, \
|
---|
80 | '' i 8 using ( (strcol(4) eq "stl") ? ($3/SCALE) : 1/0 ):2 title "stl, len=200" with points lt rgb "black" pt 5 ps 1, \
|
---|
81 | '' i 8 using ( (strcol(4) eq "cfa") ? ($3/SCALE) : 1/0 ):2 notitle with points lt rgb "black" pt 66 ps 2
|
---|
82 |
|
---|
83 |
|
---|
84 | unset mytics
|
---|
85 | unset ytics
|
---|
86 | unset yrange
|
---|
87 | unset xrange
|
---|
88 |
|
---|
89 |
|
---|
90 |
|
---|
91 | # common to first two graphs
|
---|
92 | unset logscale
|
---|
93 | unset xlabel
|
---|
94 | unset mxtics
|
---|
95 |
|
---|
96 | #
|
---|
97 | # Attribution
|
---|
98 | #
|
---|
99 |
|
---|
100 | set style data histogram
|
---|
101 | set ytics auto
|
---|
102 | set style histogram clustered gap 1 rowstacked
|
---|
103 | set style fill solid border -1
|
---|
104 | set boxwidth 0.8
|
---|
105 | set xtics rotate by -45
|
---|
106 |
|
---|
107 | plot for [col=3:8] \
|
---|
108 | INDIR.'/plot-string-allocn-attrib.dat' using col:xticlabels(stringcolumn(2).", len=".stringcolumn(1)) index 0 title columnheader(col)
|
---|