-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathBsonBenchmarkDataTypes.cs
More file actions
332 lines (302 loc) · 11.4 KB
/
Copy pathBsonBenchmarkDataTypes.cs
File metadata and controls
332 lines (302 loc) · 11.4 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
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
/* Copyright 2010-present MongoDB Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
namespace MongoDB.Benchmarks.Bson;
public sealed class FlatPoco
{
[BsonId]
public ObjectId Id { get; set; }
// Boolean fields
public bool IsorvnMR { get; set; }
public bool vvUeXASH { get; set; }
public bool HicJbMpj { get; set; }
public bool pKjOghFa { get; set; }
public bool VcCSqSmp { get; set; }
public bool JhImQOkw { get; set; }
public bool MNuWZMLP { get; set; }
public bool WHSQVLKG { get; set; }
public bool wjfyueDC { get; set; }
public bool FpduyhQP { get; set; }
public bool zDzSGNnW { get; set; }
public bool UpdMADoN { get; set; }
public bool XGxlHrXf { get; set; }
public bool zEgGhhZf { get; set; }
public bool RemSsnnR { get; set; }
public bool yeTUgNrU { get; set; }
public bool LVNIFCYm { get; set; }
public bool aicoMxZq { get; set; }
public bool TRpgnInA { get; set; }
public bool WmMOvgFc { get; set; }
public bool qrJASGzU { get; set; }
public bool egxZaSsw { get; set; }
public bool kfvcFmKw { get; set; }
public bool sGWJTAcT { get; set; }
// Int32 fields
public int XeRkAyCq { get; set; }
public int SUWXijHT { get; set; }
public int ijwXMKqI { get; set; }
public int ddVenEkK { get; set; }
public int MXMxLVBk { get; set; }
public int VVvwKVRG { get; set; }
public int UKwbAKGw { get; set; }
public int MqfkBZJF { get; set; }
public int VplFgewF { get; set; }
public int nBKWWUWk { get; set; }
public int Rbxpznea { get; set; }
public int dCLfYqqM { get; set; }
public int nKhiSITP { get; set; }
public int ddPdLgGg { get; set; }
public int AgYYbYPr { get; set; }
public int pOMEwSod { get; set; }
public int BwTXiovJ { get; set; }
public int KyxOoCqS { get; set; }
public int GiAHzFII { get; set; }
public int DJsnHZIC { get; set; }
public int PvfnpsMV { get; set; }
public int qHzOMXeT { get; set; }
public int omnwvBbA { get; set; }
public int CFujXoob { get; set; }
// Double fields
public double pfZSRHnn { get; set; }
public double taoNnQYY { get; set; }
public double TgSwBbgp { get; set; }
public double yKfZnGKG { get; set; }
public double XxvXmHiQ { get; set; }
public double jWaFvVAz { get; set; }
public double obcwwqWZ { get; set; }
public double HrUPbFHD { get; set; }
public double XEBqaXkB { get; set; }
public double LngvlnTV { get; set; }
public double gySFZeAE { get; set; }
public double JzgaUWVG { get; set; }
public double iwfbMdcv { get; set; }
public double hwHOTmmW { get; set; }
public double dVkWIafN { get; set; }
public double HQiykral { get; set; }
public double pacTBmxE { get; set; }
public double JXMyYkfb { get; set; }
public double ReOZakjB { get; set; }
public double mlfZVfVT { get; set; }
public double CDIGOuIZ { get; set; }
public double PjKiuWnQ { get; set; }
public double pQyCJaEd { get; set; }
public double HQeCoswW { get; set; }
// Int64 fields
public long FDYGeSiR { get; set; }
public long TmUnYUrv { get; set; }
public long VCSKFCoE { get; set; }
public long AtWNZJXa { get; set; }
public long wmDLUkXt { get; set; }
public long zSYvADVf { get; set; }
public long doshbrpF { get; set; }
public long zswQbWEI { get; set; }
public long XXKbyIXG { get; set; }
public long xWpeGNjl { get; set; }
public long KMKBtlov { get; set; }
public long cVjWCrlu { get; set; }
public long ahFCBmqT { get; set; }
public long TkXMwZlU { get; set; }
public long bkuaZWRT { get; set; }
public long DQBQcQFj { get; set; }
public long sYtnozSc { get; set; }
public long UtbwOKLt { get; set; }
public long SqNvlUZF { get; set; }
public long HVHyetUM { get; set; }
public long AgSNVyBb { get; set; }
public long reiKnuza { get; set; }
public long xZOksssj { get; set; }
public long AMQrGQmu { get; set; }
// String fields
public string oRWMNJTE { get; set; }
public string hnVgYIQi { get; set; }
public string cxOHMeDJ { get; set; }
public string MeUYSkPS { get; set; }
public string McpOBmaR { get; set; }
public string CqCssWxW { get; set; }
public string vkEDWgmN { get; set; }
public string xrzGnsEK { get; set; }
public string OCsIhHxq { get; set; }
public string iFFGfTXc { get; set; }
public string RwAVVKHM { get; set; }
public string jmglLvAS { get; set; }
public string ZmtEJFSO { get; set; }
public string eRTIdIJR { get; set; }
public string vlSZaxCV { get; set; }
public string QobifTeZ { get; set; }
public string dNSuxlSU { get; set; }
public string WYJdGJLu { get; set; }
public string RPsQhgRD { get; set; }
public string rmzUAgmk { get; set; }
public string Ibrdrtgg { get; set; }
public string KnhgtAOJ { get; set; }
public string OfTmCvDx { get; set; }
public string JrJzKiIx { get; set; }
public string SYtZkQbC { get; set; }
public string tIJEYSYM { get; set; }
public string dHsYhRbV { get; set; }
public string LUPqMOHS { get; set; }
public string CYhSCkWB { get; set; }
public string vSLTtfDF { get; set; }
public string CEtYKsdd { get; set; }
public string YDHWnEXV { get; set; }
public string xWUlYggc { get; set; }
public string dpbwfSRb { get; set; }
public string fEheUtop { get; set; }
public string TDUzNJiH { get; set; }
public string zMCFzcWY { get; set; }
public string yXSBbPeT { get; set; }
public string wjAWaOog { get; set; }
public string cepcgozk { get; set; }
public string BBqZInWV { get; set; }
public string dtywOLeD { get; set; }
public string WoFGfdvb { get; set; }
public string uMDWqLMf { get; set; }
public string jbUymqiB { get; set; }
public string VtzeOlCT { get; set; }
public string gErhgZTh { get; set; }
public string pPtPsgRl { get; set; }
}
public sealed class FullPoco
{
[BsonId]
public ObjectId Id { get; set; }
// Int32 fields
public int KpnXZaDQ { get; set; }
public int nyYyaFrV { get; set; }
public int NAKOhrML { get; set; }
public int SQIAGqNE { get; set; }
public int bRaWfHwf { get; set; }
public int RFhPJzgh { get; set; }
// Binary fields
[BsonRepresentation(BsonType.Binary)]
public byte[] BOQAeydE { get; set; }
[BsonRepresentation(BsonType.Binary)]
public byte[] kqKTGXUm { get; set; }
[BsonRepresentation(BsonType.Binary)]
public byte[] hAcOFtfN { get; set; }
[BsonRepresentation(BsonType.Binary)]
public byte[] SHvLWKjg { get; set; }
[BsonRepresentation(BsonType.Binary)]
public byte[] vSvdWAnJ { get; set; }
[BsonRepresentation(BsonType.Binary)]
public byte[] DQuSYbZR { get; set; }
// Int64 fields
public long kVDldkCH { get; set; }
public long iRVlyXVm { get; set; }
public long CAWdqfmI { get; set; }
public long qPDeTZWq { get; set; }
public long dSMWIFLD { get; set; }
public long GqcHZeLf { get; set; }
public long jMeFYftg { get; set; }
public long JEVgGziE { get; set; }
public long rclBQefx { get; set; }
public long EAYSerbF { get; set; }
public long TtYjxGJH { get; set; }
public long juiYRtal { get; set; }
// Empty document fields
public BsonDocument olUSRZtj { get; set; }
public BsonDocument hhVNsfZZ { get; set; }
public BsonDocument iEoENLRz { get; set; }
public BsonDocument caPGDEGj { get; set; }
// MaxKey fields
public BsonMaxKey ayrwiTMT { get; set; }
public BsonMaxKey kFaSNVoS { get; set; }
public BsonMaxKey LCHLPrcd { get; set; }
public BsonMaxKey uhmyCSEv { get; set; }
public BsonMaxKey uSbYKmdX { get; set; }
public BsonMaxKey IsYFQBkP { get; set; }
// Boolean fields
public bool zlVZQePF { get; set; }
public bool DfzEYsYW { get; set; }
public bool OagyDZLm { get; set; }
public bool RBrgnptQ { get; set; }
public bool wShiBppY { get; set; }
public bool mUXXRWFX { get; set; }
public bool WqNFzMgH { get; set; }
public bool yPKwWWxb { get; set; }
public bool fvLXcTQB { get; set; }
public bool kQhDjXIO { get; set; }
public bool WboSdRaB { get; set; }
public bool hjSPiBiC { get; set; }
// MinKey fields
public BsonMinKey VFKRjaPW { get; set; }
public BsonMinKey EuKkhmHw { get; set; }
public BsonMinKey wKCwNLSh { get; set; }
public BsonMinKey BGAqpNkE { get; set; }
public BsonMinKey zqpnKCOL { get; set; }
public BsonMinKey QdkSZoFx { get; set; }
// DateTime fields
public DateTime pDeYcUIu { get; set; }
public DateTime buEAkIge { get; set; }
public DateTime uNvbuffj { get; set; }
public DateTime PGiZAWYN { get; set; }
public DateTime SQOAGVaT { get; set; }
public DateTime IJOIvDcw { get; set; }
// JavaScript Code with Scope fields
public BsonJavaScriptWithScope giVmVwzU { get; set; }
public BsonJavaScriptWithScope xoLWHvAD { get; set; }
public BsonJavaScriptWithScope MsFvjFIM { get; set; }
public BsonJavaScriptWithScope UuDsAOGk { get; set; }
public BsonJavaScriptWithScope kcVXzXHn { get; set; }
public BsonJavaScriptWithScope lyWwkZGg { get; set; }
public BsonJavaScriptWithScope iNbJUZuj { get; set; }
public BsonJavaScriptWithScope ARdpUnvr { get; set; }
public BsonJavaScriptWithScope yltfrVvf { get; set; }
public BsonJavaScriptWithScope LQygaTou { get; set; }
public BsonJavaScriptWithScope AZbAtRCC { get; set; }
public BsonJavaScriptWithScope duzmrLJI { get; set; }
// Timestamp fields
public BsonTimestamp geaenijV { get; set; }
public BsonTimestamp xCNVQDhK { get; set; }
public BsonTimestamp ZmCYgzpS { get; set; }
public BsonTimestamp fWBoraHq { get; set; }
public BsonTimestamp duTaTKGF { get; set; }
public BsonTimestamp LNpbbRfA { get; set; }
// String fields
public string KUVCyPFv { get; set; }
public string ebfJeJwS { get; set; }
public string tuTaYuPG { get; set; }
public string JQbxXYUE { get; set; }
public string JlhVrQmD { get; set; }
public string nLsRKLJQ { get; set; }
// Regular Expression fields
public BsonRegularExpression ZZbaMgQp { get; set; }
public BsonRegularExpression BZogAEUM { get; set; }
// Array fields
public int[] NzsNfcyY { get; set; }
public int[] VIJGlGfX { get; set; }
public int[] bxrxTsho { get; set; }
public int[] dNVHpBIF { get; set; }
public int[] hUhWCZbY { get; set; }
public int[] UwZlNrHv { get; set; }
}
public sealed class DeepPocoRoot
{
public DeepPocoNode right { get; set; }
public DeepPocoNode left { get; set; }
}
public sealed class DeepPocoNode
{
[BsonIgnoreIfNull]
public DeepPocoNode right { get; set; }
[BsonIgnoreIfNull]
public DeepPocoNode left { get; set; }
[BsonIgnoreIfNull]
public string rightValue { get; set; }
[BsonIgnoreIfNull]
public string leftValue { get; set; }
}