-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpaper_pareto.gp
More file actions
59 lines (48 loc) · 2.25 KB
/
Copy pathpaper_pareto.gp
File metadata and controls
59 lines (48 loc) · 2.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
set title "Cache efficiency and speedup trade-off" font ",24"
set xlabel "LLC-load-miss reduction (proxy for DRAM)" font ",22"
set ylabel "Speedup" font ",22"
set grid ytics
set tics font ",14"
set terminal pdfcairo size 6in,4in color enhanced font "Helvetica,11" linewidth 2 rounded
set output "paper_pareto.pdf"
unset key # <-- no legend
# inline data
$DATA << EOD
baseline 1 1
SBBF 2.38 2.07
lds-partition-16 7.03 1.45
lds-full-sort 8.57 1.22
PBF 10.87 1.43
CPSBBF(4,4) 28.79 3.62
EOD
set xrange [0:34]
set yrange [0:4]
set ytics 0,1,4
set bmargin 4
set key outside top center horizontal samplen 0.8 spacing 1.1
set style line 1 pt 7 # baseline
set style line 2 pt 7 # SBBF
set style line 3 pt 7 # lds-full-sort
set style line 4 pt 7 # PBF
set style line 5 pt 7 # CPSBBF(4,4)
set style line 6 pt 7 # lds-partition-16
$poly << EOD
2.38 2.07
7.03 1.45
10.87 1.43
EOD
# labels placed near points
set label 1 "baseline-BF" at 1,1 offset char -1.0,-1.5 front font ",16"
set label 2 "SBBF*" at 2.38,2.07 offset char 1.0,0.8 front font ",16"
set label 3 "lds-partition-16" at 7.03,1.45 offset char -16.0,-1.1 front font ",16"
set label 4 "lds-full-sort" at 8.57,1.22 offset char -3.0,-1.2 front font ",16"
set label 5 "PBF" at 10.87,1.43 offset char 2.0,0.0 front font ",16"
set label 6 "CPSBBF(4,4)*" at 28.79,3.62 offset char -3.0,-1.5 front font ",16"
plot \
$poly using 1:2 with lines lw 2 notitle, \
$DATA using (strcol(1) eq "baseline" ? $2 : 1/0):(strcol(1) eq "baseline" ? $3 : 1/0) with points ls 1 notitle, \
$DATA using (strcol(1) eq "SBBF" ? $2 : 1/0):(strcol(1) eq "SBBF" ? $3 : 1/0) with points ls 2 notitle, \
$DATA using (strcol(1) eq "lds-full-sort" ? $2 : 1/0):(strcol(1) eq "lds-full-sort" ? $3 : 1/0) with points ls 3 notitle, \
$DATA using (strcol(1) eq "PBF" ? $2 : 1/0):(strcol(1) eq "PBF" ? $3 : 1/0) with points ls 4 notitle, \
$DATA using (strcol(1) eq "CPSBBF(4,4)" ? $2 : 1/0):(strcol(1) eq "CPSBBF(4,4)" ? $3 : 1/0) with points ls 5 notitle, \
$DATA using (strcol(1) eq "lds-partition-16" ? $2 : 1/0):(strcol(1) eq "lds-partition-16" ? $3 : 1/0) with points ls 6 notitle, \