This repository was archived by the owner on Jan 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathspeed_png.plot
164 lines (134 loc) · 5.44 KB
/
speed_png.plot
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
# IMPORT-DATA stats ../stats.txt
set terminal pngcairo enhanced font 'Lato,10'
set style line 11 lc rgb "#333333" lt 1
set border 3 back ls 11
set tics nomirror
# define grid
set style line 12 lc rgb "#333333" lt 0 lw 1
set grid back ls 12
set grid xtics ytics
set key top left
set yrange [0:3.5]
set xlabel 'Item Count [log_2(n)]'
set ylabel 'Run Time / n log_2n [Nanoseconds]'
#SQL DELETE FROM stats WHERE LOG(2, size) < 12
set output "random.png"
set title 'Super Scalar Sample Sort Test: Random'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "random"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 0 title "ssssort" with linespoints, \
'speed_png-data.txt' index 1 title "std::sort" with linespoints
set output "80pcsorted.png"
set title 'Super Scalar Sample Sort Test: 80% Sorted'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "80pcsorted"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 2 title "ssssort" with linespoints, \
'speed_png-data.txt' index 3 title "std::sort" with linespoints
set output "90pcsorted.png"
set title 'Super Scalar Sample Sort Test: 90% Sorted'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "90pcsorted"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 4 title "ssssort" with linespoints, \
'speed_png-data.txt' index 5 title "std::sort" with linespoints
set output "99pcsorted.png"
set title 'Super Scalar Sample Sort Test: 99% Sorted'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "99pcsorted"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 6 title "ssssort" with linespoints, \
'speed_png-data.txt' index 7 title "std::sort" with linespoints
set output "99.9pcsorted.png"
set title 'Super Scalar Sample Sort Test: 99.9% Sorted'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "99.9pcsorted"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 8 title "ssssort" with linespoints, \
'speed_png-data.txt' index 9 title "std::sort" with linespoints
set output "90pctail.png"
set title 'Super Scalar Sample Sort Test: 90% Sorted + 10% Random Tail'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "tail90"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 10 title "ssssort" with linespoints, \
'speed_png-data.txt' index 11 title "std::sort" with linespoints
set output "99pctail.png"
set title 'Super Scalar Sample Sort Test: 99% Sorted + 1% Random Tail'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "tail99"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 12 title "ssssort" with linespoints, \
'speed_png-data.txt' index 13 title "std::sort" with linespoints
set output "sorted.png"
set title 'Super Scalar Sample Sort Test: Sorted'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "sorted"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 14 title "ssssort" with linespoints, \
'speed_png-data.txt' index 15 title "std::sort" with linespoints
set output "reverse.png"
set title 'Super Scalar Sample Sort Test: Reverse Sorted'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "reverse"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 16 title "ssssort" with linespoints, \
'speed_png-data.txt' index 17 title "std::sort" with linespoints
set output "many-dupes.png"
set title 'Super Scalar Sample Sort Test: Many duplicates (A[i]=i^{16} mod floor(log_2 n)'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "many-dupes"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 18 title "ssssort" with linespoints, \
'speed_png-data.txt' index 19 title "std::sort" with linespoints
set output "few-spikes-with-noise.png"
set title 'Super Scalar Sample Sort Test: Few spikes, lots of noise'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "few-spikes-with-noise"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 20 title "ssssort" with linespoints, \
'speed_png-data.txt' index 21 title "std::sort" with linespoints
set output "ones.png"
set title 'Super Scalar Sample Sort Test: All Ones'
## MULTIPLOT(algo) SELECT LOG(2, size) AS x,
## AVG(time) / (size * log(2, size)) * 1e6 AS y,
## MULTIPLOT
## FROM stats WHERE name = "ones"
## GROUP BY MULTIPLOT, x ORDER BY MULTIPLOT, x
plot \
'speed_png-data.txt' index 22 title "ssssort" with linespoints, \
'speed_png-data.txt' index 23 title "std::sort" with linespoints