source: doc/theses/mike_brooks_MMath/plots/list-cmp-intrl-shift.gp@ 1eea589f

Last change on this file since 1eea589f was 16a843b, checked in by Michael Brooks <mlbrooks@…>, 2 months ago

add linked-list performance assessment

  • Property mode set to 100644
File size: 2.6 KB
Line 
1set terminal pdf color enhanced size 6.0in,3.0in font "Times,17"
2
3INDIR="build"
4OUTDIR="build"
5SRCDIR="plots"
6
7set output OUTDIR.'/plot-list-cmp-intrl-shift.pdf'
8
9set bmargin 6 # extra room at bottom for multiline x axis labels
10
11set xrange [1:9]
12set xlabel "Operation (movement / polarity / accessor)" offset 0,-2,0
13set xtics offset 4.2,0
14
15set logscale y 2
16set yrange [0.75:1.8];
17set ytics ( \
18 "40%%" 1.666666667, \
19 "30%%" 1.428571429, \
20 "20%%" 1.25, \
21 "10%%" 1.111111111, \
22 "0%%" 1, \
23 "-10%%" 0.909090909, \
24 "-20%%" 0.833333333, \
25 "-30%%" 0.769230769, \
26)
27set ylabel "Duration (No-Interleave-Relative)"
28
29# Draw axis-like line at speedup=0% (y=1.0)
30set arrow from graph 0, first 1 to graph 1, first 1 nohead lt -1 lw 2
31
32set grid
33set key top center horizontal
34
35BOXSPACING=0.25
36BOXWIDTH=BOXSPACING * .90
37set boxwidth BOXWIDTH absolute
38
39NUM_FXS=4
40
41offset(opNum, fxNum) = opNum + fxNum * BOXSPACING - (NUM_FXS+1) * BOXSPACING / 2 + 0.5
42
43# One row, to plot one-off points
44$Singleton <<EOD
450
46EOD
47
48# empty candlesticks for quantiles, then
49# varyiously styled points for means, then
50# x axis values, then
51# legend symbol augmentation
52plot INDIR.'/plot-list-cmp-intrl-shift.dat' \
53 using ($2 == 1 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'upp-upp' with candlesticks lt rgb "dark-orange", \
54 '' using ($2 == 2 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'cfa-cfa' with candlesticks lt rgb "blue" , \
55 '' using ($2 == 3 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'lq-tailq' with candlesticks lt rgb "magenta" , \
56 '' using ($2 == 4 ? (offset($1, $2)) : 1/0):10:9:13:12 title 'lq-list' with candlesticks lt rgb "purple" , \
57 '' using ($2 == 1 ? (offset($1, $2)) : 1/0):4 notitle with points pt 7 lt rgb "dark-orange", \
58 '' using ($2 == 2 ? (offset($1, $2)) : 1/0):4 notitle with points pt 9 lt rgb "blue" , \
59 '' using ($2 == 3 ? (offset($1, $2)) : 1/0):4 notitle with points pt 11 lt rgb "magenta" , \
60 '' using ($2 == 4 ? (offset($1, $2)) : 1/0):4 notitle with points pt 13 lt rgb "purple" , \
61 SRCDIR.'/list-cmp-intrl-shift-meta.dat' \
62 using 1:(-999):xtic(2) notitle with points, \
63 $Singleton using (3.73):(1.69) notitle with points pt 7 lt rgb "dark-orange", \
64 $Singleton using (5.44):(1.69) notitle with points pt 9 lt rgb "blue" , \
65 $Singleton using (6.14):(1.69) notitle with points pt 11 lt rgb "magenta" , \
66 $Singleton using (7.14):(1.69) notitle with points pt 13 lt rgb "purple"
Note: See TracBrowser for help on using the repository browser.