-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPerf_expr_config.hpp
More file actions
267 lines (248 loc) · 6.41 KB
/
Copy pathPerf_expr_config.hpp
File metadata and controls
267 lines (248 loc) · 6.41 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
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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
#ifndef CRUSH_ALL_TEST_PERF_EXPR_CONFIG_HPP_
#define CRUSH_ALL_TEST_PERF_EXPR_CONFIG_HPP_
#define SMALL
// #define LARGE
#define OVERALL
// general
// #define ENABLE_DEFLATE
// #define ENABLE_XZ
// #define ENABLE_LZ4
// #define ENABLE_LZ77
#define ENABLE_ZSTD
// #define ENABLE_SNAPPY
// #define ENABLE_GORILLA
#define ENABLE_CHIMP
#define ENABLE_CHIMP128
// #define ENABLE_ELF
#define ENABLE_ELF_STAR
// #define ENABLE_FPC
// #define ENABLE_ALP
#define ENABLE_CRUSH
#define ENABLE_CRUSH_OVERALL
// alpha实验
// #define ENABLE_ALPHA_TEST
// 消融实验
// #define ENABLE_CRUSH_ABLATION
// 消融实验选项
// #define ENABLE_CRUSH_BEST_ALPHA
// #define ENABLE_CRUSH_WO_ADAUNIALPHA
// #define ENABLE_CRUSH_WO_SHIFT
// #define ENABLE_CRUSH_WO_ADARLE
// #define ENABLE_CRUSH_WO_SPLIT_SHIFT
// 参数实验
// #define ENABLE_BATCH_SIZE_TEST
// #define ENABLE_CRUSH_SET_OFFSET
// 32位实验
// #define ENABLE_32_TEST
//exp on server
// #define EXP_ON_SERVER
#include <string>
#include <unordered_map>
// File config
#ifdef EXP_ON_SERVER
const static std::string kExportExprTablePrefix = "/home/gys/crush-test/";
const static std::string kDataSetDirPrefix = "/home/gys/data_set/";
const static std::string kCutDataSetDirPrefix = "/home/gys/cut_data_set/";
#else
// depends on current dir
const static std::string kExportExprTablePrefix = std::string(PROJECT_ROOT_PATH) + "/";
const static std::string kDataSetDirPrefix = std::string(PROJECT_ROOT_PATH) + "/data_set/";
const static std::string kCutDataSetDirPrefix = std::string(PROJECT_ROOT_PATH) + "/cut_data_set/";
#endif
const static std::string kExportExprTableSuffix = "_table.csv";
const static int kBlockSizeOverall = 1024; // We choose 1024 as default block size.
const static std::string kDataSetList[] = {
#ifdef SMALL
"Food-price copy.csv",
"City-temp.csv", "IR-bio-temp.csv",
"Wind-Speed.csv", "PM10-dust.csv",
"Stocks-UK.csv", "Stocks-USA.csv",
"Stocks-DE.csv", "Dew-point-temp.csv",
"Air-pressure.csv", "Basel-wind.csv",
"Basel-temp.csv", "Bitcoin-price.csv",
"Bird-migration.csv", "Air-sensor.csv",
"Food-price.csv", "electric_vehicle_charging.csv",
"Blockchain-tr.csv", "SSD-bench.csv",
"City-lat.csv", "City-lon.csv",
"POI-lat.csv", "POI-lon.csv",
#endif
#ifdef LARGE
"Arade_4.csv",
"CMS_1.csv",
"CMS_9.csv",
"CMS_25.csv",
"GOV_10.csv",
"NYC_29.csv",
#endif
};
const static std::string kDataSetListCalculate[] = {
#ifdef SMALL
// "Food-price copy.csv",
"City-temp.csv", "IR-bio-temp.csv",
"Wind-Speed.csv", "PM10-dust.csv",
"Stocks-UK.csv", "Stocks-USA.csv",
"Stocks-DE.csv", "Dew-point-temp.csv",
"Air-pressure.csv", "Basel-wind.csv",
"Basel-temp.csv", "Bitcoin-price.csv",
"Bird-migration.csv", "Air-sensor.csv",
"Food-price.csv", "electric_vehicle_charging.csv",
"Blockchain-tr.csv", "SSD-bench.csv",
"City-lat.csv", "City-lon.csv",
"POI-lat.csv", "POI-lon.csv",
#endif
#ifdef LARGE
"Arade_4.csv",
"CMS_1.csv",
"CMS_9.csv",
"CMS_25.csv",
"GOV_10.csv",
"NYC_29.csv",
#endif
};
const static std::string kDataSetList32[] = {
"Food-price copy.csv",
"City-temp.csv", "IR-bio-temp.csv",
"Wind-Speed.csv", "PM10-dust.csv",
"Stocks-UK.csv", "Stocks-USA.csv",
"Stocks-DE.csv", "Dew-point-temp.csv",
"Air-pressure.csv",
// "Basel-wind.csv",
// "Basel-temp.csv", "Bitcoin-price.csv",
"Bird-migration.csv", //"Air-sensor.csv",
"Food-price.csv", "electric_vehicle_charging.csv",
"Blockchain-tr.csv", "SSD-bench.csv",
// "City-lat.csv", "City-lon.csv",
// "POI-lat.csv", "POI-lon.csv",
};
// Exclude two datasets, because they are too SHORT.
const static std::string batchDataSetList[] = {
"City-temp.csv", "IR-bio-temp.csv",
"Wind-Speed.csv", "PM10-dust.csv",
"Stocks-UK.csv", "Stocks-USA.csv",
"Stocks-DE.csv", "Dew-point-temp.csv",
"Air-pressure.csv", "Basel-wind.csv",
"Basel-temp.csv", //"Bitcoin-price.csv",
"Bird-migration.csv", "Air-sensor.csv",
"Food-price.csv", //"electric_vehicle_charging.csv",
"Blockchain-tr.csv", "SSD-bench.csv",
"City-lat.csv", "City-lon.csv",
"POI-lat.csv", "POI-lon.csv",
#ifndef FAST
"Arade_4.csv",
"CMS_1.csv",
"CMS_9.csv",
"CMS_25.csv",
"GOV_10.csv",
"NYC_29.csv",
#endif
};
const static std::string alphaDataSetList[] = { "Air-sensor copy.csv", "POI-lat.csv", "POI-lon.csv", "Air-sensor.csv",
};
// Overall experiment config
const static std::string kMethodListOverall[] = {
#ifdef ENABLE_DEFLATE
"Deflate",
#endif
#ifdef ENABLE_XZ
"XZ",
#endif
#ifdef ENABLE_LZ4
"LZ4",
#endif
#ifdef ENABLE_LZ77
"LZ77",
#endif
#ifdef ENABLE_ZSTD
"Zstd",
#endif
#ifdef ENABLE_SNAPPY
"Snappy",
#endif
#ifdef ENABLE_GORILLA
"Gorilla",
#endif
#ifdef ENABLE_CHIMP
"Chimp",
#endif
#ifdef ENABLE_CHIMP128
"Chimp128",
#endif
#ifdef ENABLE_ELF
"Elf",
#endif
#ifdef ENABLE_ELF_STAR
"Elf*",
#endif
#ifdef ENABLE_FPC
"FPC",
#endif
#ifdef ENABLE_ALP
"ALP",
#endif
#ifdef ENABLE_CRUSH_OVERALL
"Crush",
#endif
// #ifdef ENABLE_CRUSH_BEST_ALPHA
// "Crush_Best_Alpha",
// #endif
// #ifdef ENABLE_CRUSH_WO_ADAUNIALPHA
// "Crush_wo_AdaUniAlpha",
// #endif
// #ifdef ENABLE_CRUSH_WO_SHIFT
// "Crush_wo_Shift",
// #endif
// #ifdef ENABLE_CRUSH_WO_ADARLE
// "Crush_wo_AdaRLE",
// #endif
};
const static std::string kMethodList32[] = {
#ifdef ENABLE_ZSTD
"Zstd",
#endif
#ifdef ENABLE_SNAPPY
"Snappy",
#endif
#ifdef ENABLE_GORILLA
"Gorilla",
#endif
#ifdef ENABLE_CHIMP
"Chimp",
#endif
#ifdef ENABLE_CHIMP128
"Chimp128",
#endif
#ifdef ENABLE_ELF
"Elf",
#endif
#ifdef ENABLE_ELF_STAR
"Elf*",
#endif
#ifdef ENABLE_ALP
"ALP",
#endif
#ifdef ENABLE_CRUSH
"Crush",
#endif
};
const static std::string abMethodListOverall[] = {
// #ifdef ENABLE_CRUSH
// "Crush",
// #endif
#ifdef ENABLE_CRUSH_BEST_ALPHA
"Crush_Best_Alpha",
#endif
#ifdef ENABLE_CRUSH_WO_ADAUNIALPHA
"Crush_wo_AdaUniAlpha",
#endif
#ifdef ENABLE_CRUSH_WO_SHIFT
"Crush_wo_Shift",
#endif
#ifdef ENABLE_CRUSH_WO_ADARLE
"Crush_wo_AdaRLE",
#endif
#ifdef ENABLE_CRUSH_WO_SPLIT_SHIFT
"Crush_wo_Split_Shift",
#endif
};
const static double kMaxDiffOverall = 1.0E-3; // Actually, we DO NOT use this param.
#endif //CRUSH_ALL_TEST_PERF_EXPR_CONFIG_HPP_