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 | SRCDIR="plots"
|
---|
8 |
|
---|
9 | SCALE=1024
|
---|
10 |
|
---|
11 | # common to all
|
---|
12 | set macros
|
---|
13 | set output OUTDIR."/plot-string-allocn.pdf"
|
---|
14 | set multiplot layout 1, 2 ;
|
---|
15 | set grid
|
---|
16 |
|
---|
17 |
|
---|
18 | #
|
---|
19 | # CFA multisize
|
---|
20 | #
|
---|
21 |
|
---|
22 | #set errorbars dashtype '.'
|
---|
23 |
|
---|
24 | set logscale x 2
|
---|
25 | set xlabel "Heap Used (B)"
|
---|
26 | set logscale y 10
|
---|
27 | set key outside top center
|
---|
28 |
|
---|
29 | set ylabel "Duration (ns)" offset 2,0
|
---|
30 | set yrange[40:150]
|
---|
31 | set ytics add (40, 50, 60, 70, 80, 90, 110, 120, 130, 140, 150)
|
---|
32 |
|
---|
33 | set xrange[32:8192]
|
---|
34 | set xtics rotate by -90
|
---|
35 | set xtics ("" 32, "64 k" 64, "" 128, "256 k" 256, "" 512, "1 M" 1024, "" 2048, "4 M" 4096)
|
---|
36 |
|
---|
37 | # First each curve, then each default-expansion point
|
---|
38 | plot INDIR."/plot-string-allocn.dat" \
|
---|
39 | i 0 using ($5/SCALE):2 notitle with lines lt rgb "blue" dt '.' lw 2, \
|
---|
40 | '' i 1 using ($5/SCALE):2 notitle with lines lt rgb "red" dt '.' lw 2, \
|
---|
41 | '' i 2 using ($5/SCALE):2 notitle with lines lt rgb "brown" dt '.' lw 2, \
|
---|
42 | '' i 3 using ($5/SCALE):2 title "tuning contour" with lines lt rgb "black" dt '.' lw 2, \
|
---|
43 | '' i 4 using ($5/SCALE):2 notitle with lines lt rgb "magenta" dt '.' lw 2, \
|
---|
44 | '' i 0 using ($5/SCALE):2:3:4 notitle with yerrorbars lt rgb "blue" pt 7 ps 0.25 lw 1, \
|
---|
45 | '' i 1 using ($5/SCALE):2:3:4 notitle with yerrorbars lt rgb "red" pt 7 ps 0.25 lw 1, \
|
---|
46 | '' i 2 using ($5/SCALE):2:3:4 notitle with yerrorbars lt rgb "brown" pt 7 ps 0.25 lw 1, \
|
---|
47 | '' i 3 using ($5/SCALE):2:3:4 notitle with yerrorbars lt rgb "black" pt 7 ps 0.25 lw 1, \
|
---|
48 | '' i 4 using ($5/SCALE):2:3:4 notitle with yerrorbars lt rgb "magenta" pt 7 ps 0.25 lw 1, \
|
---|
49 | '' i 0 using ( ($8 == 1) ? ($5/SCALE) : 1/0 ):2 notitle with points lt rgb "blue" pt 66 ps 2, \
|
---|
50 | '' i 1 using ( ($8 == 1) ? ($5/SCALE) : 1/0 ):2 notitle with points lt rgb "red" pt 66 ps 2, \
|
---|
51 | '' i 2 using ( ($8 == 1) ? ($5/SCALE) : 1/0 ):2 notitle with points lt rgb "brown" pt 66 ps 2, \
|
---|
52 | '' i 3 using ( ($8 == 1) ? ($5/SCALE) : 1/0 ):2 title "default tuning" \
|
---|
53 | with points lt rgb "black" pt 66 ps 2, \
|
---|
54 | '' i 4 using ( ($8 == 1) ? ($5/SCALE) : 1/0 ):2 notitle with points lt rgb "magenta" pt 66 ps 2, \
|
---|
55 | '' i 0 using ($5/SCALE):2:("{/Times=15 len-\n20") every ::1::1 with labels left offset 0.75,0.25 textcolor rgb "blue" notitle, \
|
---|
56 | '' i 1 using ($5/SCALE):2:("{/Times=15 len-\n50") every ::5::5 with labels right offset -0.6 ,1.5 textcolor rgb "red" notitle, \
|
---|
57 | '' i 2 using ($5/SCALE):2:("{/Times=15 len-\n100") every ::4::4 with labels right offset -0.75,0.5 textcolor rgb "brown" notitle, \
|
---|
58 | '' i 3 using ($5/SCALE):2:("{/Times=15 len-\n200") every ::4::4 with labels right offset -0.75,1.25 textcolor rgb "black" notitle, \
|
---|
59 | '' i 4 using ($5/SCALE):2:("{/Times=15 len-\n500") every ::4::4 with labels right offset -0.75,0.25 textcolor rgb "magenta" notitle, \
|
---|
60 | '' i 5 using ($5/SCALE) :2 notitle with lines lt rgb "#BF007F7F" lw 8, \
|
---|
61 | '' i 6 using ($5/SCALE) :2 notitle with lines lt rgb "#BF007F7F" lw 8, \
|
---|
62 | '' i 7 using ($5/SCALE) :2 notitle with lines lt rgb "#BF007F7F" lw 8, \
|
---|
63 | '' i 8 using ($5/SCALE) :2 title "tradeoff" with lines lt rgb "#BF007F7F" lw 8, \
|
---|
64 | '' i 9 using ($5/SCALE) :2 notitle with lines lt rgb "#BF007F7F" lw 8, \
|
---|
65 | '' i 5 using ( (strcol(8) eq "stl") ? ($5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "#00007F7F" pt 6 ps 0.5 lw 2 , \
|
---|
66 | '' i 6 using ( (strcol(8) eq "stl") ? ($5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "#00007F7F" pt 6 ps 0.5 lw 2 , \
|
---|
67 | '' i 7 using ( (strcol(8) eq "stl") ? ($5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "#00007F7F" pt 6 ps 0.5 lw 2 , \
|
---|
68 | '' i 8 using ( (strcol(8) eq "stl") ? ($5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "#00007F7F" pt 6 ps 0.5 lw 2 , \
|
---|
69 | '' i 9 using ( (strcol(8) eq "stl") ? ($5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "#00007F7F" pt 6 ps 0.5 lw 2
|
---|
70 |
|
---|
71 |
|
---|
72 | unset ylabel
|
---|
73 | unset xlabel
|
---|
74 |
|
---|
75 | unset xtics
|
---|
76 | unset ytics
|
---|
77 | unset yrange
|
---|
78 | unset xrange
|
---|
79 |
|
---|
80 | unset logscale
|
---|
81 | unset xlabel
|
---|
82 | unset mxtics
|
---|
83 |
|
---|
84 | #
|
---|
85 | # Attribution
|
---|
86 | #
|
---|
87 |
|
---|
88 | set key outside top center vertical maxrows 3
|
---|
89 |
|
---|
90 | set logscale x 2
|
---|
91 | #set mxtics 3 # 3 steps within each doubling (e.g. 3 steps of of 32 between 32 and 128 => tick on 32s in there)
|
---|
92 |
|
---|
93 | set yrange[0:105]
|
---|
94 | set ytics auto
|
---|
95 |
|
---|
96 | set xrange[2.0e4:3e7]
|
---|
97 | # set xtics rotate by -90
|
---|
98 | # set xtics ("" 32, "64 k" 64, "" 128, "256 k" 256, "" 512, "1 M" 1024, "" 2048, "4 M" 4096)
|
---|
99 |
|
---|
100 | set style fill solid 1.0
|
---|
101 |
|
---|
102 | BAR_RELWD = 0.5
|
---|
103 | BAR_XSHIFT = (1+BAR_RELWD)**(-0.55)
|
---|
104 | LEN_X_SEP = 1.7
|
---|
105 |
|
---|
106 | # get segment draw order (front to back) from metadata file
|
---|
107 | meta = system('cat '.SRCDIR.'/string-allocn-attrib-meta.dat')
|
---|
108 | STATS_words = words(meta)
|
---|
109 | array STATS_word[STATS_words]
|
---|
110 | do for [i=1:STATS_words] {
|
---|
111 | STATS_word[i] = word(meta, i)
|
---|
112 | }
|
---|
113 |
|
---|
114 |
|
---|
115 |
|
---|
116 | plot \
|
---|
117 | for [i=STATS_words:1:-1] \
|
---|
118 | INDIR.'/plot-string-allocn-attrib.dat' \
|
---|
119 | using (stringcolumn("category") eq STATS_word[i] ? (BAR_XSHIFT*$1**LEN_X_SEP*$3/SCALE) : 1/0): \
|
---|
120 | (stringcolumn("category") eq STATS_word[i] ? ($5 + $8) : 1/0): \
|
---|
121 | (stringcolumn("category") eq STATS_word[i] ? (BAR_RELWD*(BAR_XSHIFT*$1**LEN_X_SEP*$3/SCALE)) : 1/0) \
|
---|
122 | with boxes ls i title STATS_word[i], \
|
---|
123 | INDIR."/plot-string-allocn.dat" \
|
---|
124 | i 1 using (50 **LEN_X_SEP*$5/SCALE):2 notitle with lines lt rgb "red" dt '.' lw 2, \
|
---|
125 | '' i 3 using (200**LEN_X_SEP*$5/SCALE):2 notitle with lines lt rgb "black" dt '.' lw 2, \
|
---|
126 | '' i 1 using ( ($8 == 1) ? (50 **LEN_X_SEP*$5/SCALE) : 1/0 ):2 notitle with points lt rgb "red" pt 66 ps 2, \
|
---|
127 | '' i 3 using ( ($8 == 1) ? (200**LEN_X_SEP*$5/SCALE) : 1/0 ):2 notitle with points lt rgb "black" pt 66 ps 2, \
|
---|
128 | '' i 1 using ( ($8 == 1) ? (50 **LEN_X_SEP*$5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "red" pt 7 ps 0.25 lw 1, \
|
---|
129 | '' i 3 using ( ($8 == 1) ? (200**LEN_X_SEP*$5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "black" pt 7 ps 0.25 lw 1, \
|
---|
130 | '' i 1 using (50 **LEN_X_SEP*$5/SCALE):2:("{/Times=15 len-\n50") every ::5::5 with labels right offset -0.6 ,1.5 textcolor rgb "red" notitle, \
|
---|
131 | '' i 3 using (200**LEN_X_SEP*$5/SCALE):2:("{/Times=15 len-\n200") every ::4::4 with labels right offset -0.75,1.25 textcolor rgb "black" notitle, \
|
---|
132 | '' i 6 using (50 **LEN_X_SEP*$5/SCALE) :2 notitle with lines lt rgb "#BF007F7F" lw 8, \
|
---|
133 | '' i 8 using (200**LEN_X_SEP*$5/SCALE) :2 notitle with lines lt rgb "#BF007F7F" lw 8, \
|
---|
134 | '' i 6 using ( (strcol(8) eq "stl") ? (50 **LEN_X_SEP*$5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "#00007F7F" pt 6 ps 0.5 lw 2 , \
|
---|
135 | '' i 8 using ( (strcol(8) eq "stl") ? (200**LEN_X_SEP*$5/SCALE) : 1/0 ):2:3:4 notitle with yerrorbars lt rgb "#00007F7F" pt 6 ps 0.5 lw 2
|
---|
136 |
|
---|
137 |
|
---|
138 | # i 6 using ($5/SCALE) :2:(BAR_RELWD*($5/SCALE)) notitle with boxes lt rgb "grey" , \
|
---|
139 | # '' i 8 using ($5/SCALE) :2:(BAR_RELWD*($5/SCALE)) notitle with boxes lt rgb "grey" , \
|
---|
140 | # '' i 6 using ($5/SCALE) :($2-40):(BAR_RELWD*($5/SCALE)) notitle with boxes lt rgb "blue", \
|
---|
141 | # '' i 8 using ($5/SCALE) :($2-40):(BAR_RELWD*($5/SCALE)) notitle with boxes lt rgb "blue", \
|
---|