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
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
|
COMMANDLINE scripts/test_cow_darray_perf01.sh -v normal
EXE_WRAPPER nice -20
logbasename test_cow_darray_perf01.amd64
logfile /usr/local/projects/zafena/jaulib/doc/test/test_cow_darray_perf01.amd64.0.log
valgrindlogfile /usr/local/projects/zafena/jaulib/doc/test/test_cow_darray_perf01.amd64.valgrind.0.log
callgrindoutfile /usr/local/projects/zafena/jaulib/doc/test/test_cow_darray_perf01.amd64.callgrind.0.out
nice -20 /usr/local/projects/zafena/jaulib/build-amd64/test/test_cow_darray_perf01 -v normal
argc 3, auto_run 0, perf_analysis 0
Mem: stdvec_empty_ 01 (full_): Elements 50 x 16 bytes; CAlloc[ 1,024 bytes, alloc[balance 1 = 7 - 6]], 1.280000 ratio
Mem: stdvec_empty_ 01 (full_): Elements 100 x 16 bytes; CAlloc[ 2,048 bytes, alloc[balance 1 = 8 - 7]], 1.280000 ratio
Mem: stdvec_empty_ 01 (full_): Elements 1,000 x 16 bytes; CAlloc[ 16,384 bytes, alloc[balance 1 = 11 - 10]], 1.024000 ratio
Mem: darray_empty_ 01 (full_): Elements 50 x 16 bytes; CAlloc[ 880 bytes, alloc[balance 1 = 9 - 8]], 1.100000 ratio
Mem: darray_empty_ 01 (full_): Elements 100 x 16 bytes; CAlloc[ 2,304 bytes, alloc[balance 1 = 11 - 10]], 1.440000 ratio
Mem: darray_empty_ 01 (full_): Elements 1,000 x 16 bytes; CAlloc[ 25,552 bytes, alloc[balance 1 = 16 - 15]], 1.597000 ratio
Mem: cowstdvec_empty_ 01 (full_): Elements 50 x 16 bytes; CAlloc[ 1,568 bytes, alloc[balance 1 = 2 - 1]], 1.960000 ratio
Mem: cowstdvec_empty_ 01 (full_): Elements 100 x 16 bytes; CAlloc[ 3,168 bytes, alloc[balance 1 = 2 - 1]], 1.980000 ratio
Mem: cowstdvec_empty_ 01 (full_): Elements 1,000 x 16 bytes; CAlloc[ 31,968 bytes, alloc[balance 1 = 2 - 1]], 1.998000 ratio
Mem: cowdarray_empty_ 01 (full_): Elements 50 x 16 bytes; CAlloc[ 880 bytes, alloc[balance 1 = 1 - 0]], 1.100000 ratio
Mem: cowdarray_empty_ 01 (full_): Elements 100 x 16 bytes; CAlloc[ 2,304 bytes, alloc[balance 1 = 1 - 0]], 1.440000 ratio
Mem: cowdarray_empty_ 01 (full_): Elements 1,000 x 16 bytes; CAlloc[ 25,552 bytes, alloc[balance 1 = 1 - 0]], 1.597000 ratio
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
test_cow_darray_perf01 is a Catch v3.0.0-preview.3 host application.
Run with -? for options
-------------------------------------------------------------------------------
Perf Test 01 - Fill Sequential and List, empty and reserve
-------------------------------------------------------------------------------
/test/test_cow_darray_perf01.cpp:504
...............................................................................
benchmark name samples iterations estimated
mean low mean high mean
std dev low std dev high std dev
-------------------------------------------------------------------------------
STD_Vector_empty_idx FillSeq_List
50 100 35 2.1665 ms
621.585 ns 618.805 ns 628.647 ns
20.1134 ns 4.72608 ns 39.0232 ns
STD_Vector_empty_idx FillSeq_List
100 100 21 2.2176 ms
1.05626 us 1.05123 us 1.06833 us
38.1309 ns 18.3826 ns 67.1265 ns
STD_Vector_empty_idx FillSeq_List
1000 100 3 2.4105 ms
8.0459 us 8.04079 us 8.06672 us
48.2372 ns 4.43307 ns 114.591 ns
STD_Vector_empty_itr FillSeq_List
50 100 35 2.1875 ms
623.779 ns 621.916 ns 631.391 ns
16.5083 ns 1.8112 ns 38.4652 ns
STD_Vector_empty_itr FillSeq_List
100 100 21 2.2281 ms
1.05971 us 1.05726 us 1.0684 us
20.7246 ns 6.07996 ns 46.812 ns
STD_Vector_empty_itr FillSeq_List
1000 100 3 2.4246 ms
8.19097 us 8.14078 us 8.27786 us
328.634 ns 218.414 ns 491.635 ns
JAU_DArray_empty_idx FillSeq_List
50 100 34 2.1964 ms
632.731 ns 631.716 ns 637.706 ns
9.92782 ns 0.244242 ns 21.7548 ns
JAU_DArray_empty_idx FillSeq_List
100 100 19 2.2743 ms
1.1914 us 1.18782 us 1.2057 us
31.4437 ns 6.02321 ns 73.2294 ns
JAU_DArray_empty_idx FillSeq_List
1000 100 3 2.9721 ms
9.92571 us 9.88341 us 10.0102 us
292.166 ns 172.444 ns 478.252 ns
JAU_DArray_empty_itr FillSeq_List
50 100 34 2.1896 ms
633.849 ns 633.096 ns 636.274 ns
5.87405 ns 0.509425 ns 12.9792 ns
JAU_DArray_empty_itr FillSeq_List
100 100 18 2.1708 ms
1.19469 us 1.19021 us 1.20893 us
34.4665 ns 0.285733 ns 77.5966 ns
JAU_DArray_empty_itr FillSeq_List
1000 100 3 3.0147 ms
10.0261 us 10.0093 us 10.0676 us
124.17 ns 33.0341 ns 221.566 ns
COW_Vector_empty_itr FillSeq_List
50 100 4 2.4092 ms
6.70672 us 6.69499 us 6.73992 us
87.5605 ns 12.9775 ns 185.387 ns
COW_Vector_empty_itr FillSeq_List
100 100 2 3.894 ms
19.5508 us 19.4758 us 19.7054 us
527.26 ns 282.539 ns 860.689 ns
COW_Vector_empty_itr FillSeq_List
1000 100 1 106.887 ms
1.0677 ms 1.06704 ms 1.06847 ms
3.62089 us 3.086 us 4.38181 us
COW_DArray_empty_itr FillSeq_List
50 100 12 2.2884 ms
1.90155 us 1.89493 us 1.92335 us
53.9653 ns 16.8269 ns 120.067 ns
COW_DArray_empty_itr FillSeq_List
100 100 7 2.408 ms
3.43476 us 3.43245 us 3.44505 us
21.0876 ns 2.18466 ns 49.7447 ns
COW_DArray_empty_itr FillSeq_List
1000 100 1 2.9401 ms
29.4061 us 29.3331 us 29.5902 us
541.123 ns 173.84 ns 957.745 ns
STD_Vector_rserv_itr FillSeq_List
50 100 39 2.2074 ms
553.86 ns 553.632 ns 554.967 ns
2.21663 ns 0.083585 ns 5.28304 ns
STD_Vector_rserv_itr FillSeq_List
100 100 23 2.1643 ms
941.124 ns 940.716 ns 943.033 ns
3.87733 ns 0.243967 ns 9.23063 ns
STD_Vector_rserv_itr FillSeq_List
1000 100 4 2.7716 ms
6.95907 us 6.93271 us 7.01618 us
188.227 ns 106.088 ns 350.08 ns
JAU_DArray_rserv_itr FillSeq_List
50 100 43 2.2102 ms
513.648 ns 511.751 ns 517.691 ns
13.5405 ns 7.20997 ns 22.939 ns
JAU_DArray_rserv_itr FillSeq_List
100 100 26 2.1866 ms
837.875 ns 834.757 ns 844.336 ns
21.9365 ns 12.1962 ns 35.8864 ns
JAU_DArray_rserv_itr FillSeq_List
1000 100 4 2.3928 ms
5.97925 us 5.96897 us 6.02777 us
97.0827 ns 1.69152 ns 231.185 ns
COW_Vector_rserv_itr FillSeq_List
50 100 4 2.4812 ms
6.03385 us 6.02818 us 6.04885 us
43.3139 ns 13.7393 ns 87.7776 ns
COW_Vector_rserv_itr FillSeq_List
100 100 2 3.972 ms
19.7686 us 19.7567 us 19.794 us
84.7455 ns 40.5248 ns 155.576 ns
COW_Vector_rserv_itr FillSeq_List
1000 100 1 106.717 ms
1.06717 ms 1.06629 ms 1.06822 ms
4.90332 us 4.12876 us 5.87329 us
COW_Vector_rserv_itr FillSeq_List
50 100 4 2.4532 ms
6.03973 us 6.02415 us 6.07845 us
117.359 ns 43.5409 ns 210.537 ns
COW_Vector_rserv_itr FillSeq_List
100 100 2 3.9616 ms
19.8501 us 19.8017 us 19.9784 us
364.324 ns 90.8049 ns 727.538 ns
COW_Vector_rserv_itr FillSeq_List
1000 100 1 107.007 ms
1.06682 ms 1.0661 ms 1.06765 ms
3.94988 us 3.36558 us 4.63711 us
-------------------------------------------------------------------------------
Perf Test 02 - Fill Unique and List, empty and reserve
-------------------------------------------------------------------------------
/test/test_cow_darray_perf01.cpp:530
...............................................................................
benchmark name samples iterations estimated
mean low mean high mean
std dev low std dev high std dev
-------------------------------------------------------------------------------
STD_Vector_empty_idx FillUni_List
50 100 11 2.2836 ms
2.08186 us 2.07209 us 2.10323 us
70.1608 ns 37.2187 ns 120.148 ns
STD_Vector_empty_idx FillUni_List
100 100 3 2.226 ms
7.28445 us 7.25868 us 7.34877 us
183.66 ns 21.6146 ns 333.671 ns
STD_Vector_empty_idx FillUni_List
1000 100 1 72.8207 ms
726.551 us 725.661 us 727.569 us
4.85073 us 4.03768 us 5.94303 us
STD_Vector_empty_itr FillUni_List
50 100 14 2.226 ms
1.63127 us 1.63108 us 1.63163 us
1.31582 ns 0.663901 ns 2.19424 ns
STD_Vector_empty_itr FillUni_List
100 100 5 2.4145 ms
5.08323 us 5.04033 us 5.13408 us
236.825 ns 204.326 ns 330.908 ns
STD_Vector_empty_itr FillUni_List
1000 100 1 49.8496 ms
500.492 us 499.85 us 501.198 us
3.42713 us 3.0872 us 3.92417 us
JAU_DArray_empty_idx FillUni_List
50 100 12 2.2296 ms
1.86438 us 1.85575 us 1.88121 us
58.9501 ns 33.4888 ns 90.5991 ns
JAU_DArray_empty_idx FillUni_List
100 100 4 2.7524 ms
6.9787 us 6.95905 us 7.01799 us
136.572 ns 80.8991 ns 230.918 ns
JAU_DArray_empty_idx FillUni_List
1000 100 1 38.491 ms
383.875 us 383.366 us 384.45 us
2.77703 us 2.49467 us 3.15385 us
JAU_DArray_empty_itr FillUni_List
50 100 14 2.2638 ms
1.60804 us 1.6041 us 1.62654 us
37.2628 ns 2.71767 ns 88.6383 ns
JAU_DArray_empty_itr FillUni_List
100 100 4 2.3072 ms
5.78695 us 5.77482 us 5.83885 us
109.201 ns 10.5425 ns 256.294 ns
JAU_DArray_empty_itr FillUni_List
1000 100 1 38.7446 ms
384.675 us 384.033 us 385.372 us
3.40512 us 3.03996 us 3.8883 us
COW_Vector_empty_itr FillUni_List
50 100 2 2.3156 ms
11.5227 us 11.5191 us 11.5368 us
33.0449 ns 6.27744 ns 77.5982 ns
COW_Vector_empty_itr FillUni_List
100 100 1 3.5521 ms
35.1536 us 35.0932 us 35.4387 us
569.688 ns 31.7695 ns 1.35406 us
COW_Vector_empty_itr FillUni_List
1000 100 1 187.582 ms
1.87544 ms 1.87412 ms 1.87704 ms
7.39734 us 5.93101 us 9.40215 us
COW_DArray_empty_itr FillUni_List
50 100 4 2.7904 ms
6.98415 us 6.97088 us 7.01619 us
99.6001 ns 39.2271 ns 173.574 ns
COW_DArray_empty_itr FillUni_List
100 100 2 3.3086 ms
16.6341 us 16.592 us 16.7427 us
304.178 ns 38.4631 ns 587.137 ns
COW_DArray_empty_itr FillUni_List
1000 100 1 59.4288 ms
594.232 us 593.612 us 594.899 us
3.25515 us 2.91782 us 3.73734 us
STD_Vector_rserv_itr FillUni_List
50 100 15 2.316 ms
1.5272 us 1.52398 us 1.53537 us
23.2913 ns 3.89791 ns 42.4139 ns
STD_Vector_rserv_itr FillUni_List
100 100 5 2.5425 ms
4.87912 us 4.84879 us 4.914 us
165.663 ns 148.998 ns 212.749 ns
STD_Vector_rserv_itr FillUni_List
1000 100 1 49.8425 ms
501.254 us 500.366 us 502.17 us
4.59384 us 4.17587 us 5.08954 us
JAU_DArray_rserv_itr FillUni_List
50 100 16 2.2928 ms
1.46621 us 1.46596 us 1.46715 us
2.21125 ns 0.515637 ns 5.14282 ns
JAU_DArray_rserv_itr FillUni_List
100 100 5 2.563 ms
5.19923 us 5.18781 us 5.22983 us
83.4825 ns 7.97248 ns 170.149 ns
JAU_DArray_rserv_itr FillUni_List
1000 100 1 38.1178 ms
378.979 us 378.435 us 379.667 us
3.11186 us 2.60067 us 3.92334 us
COW_Vector_rserv_itr FillUni_List
50 100 2 2.336 ms
11.6679 us 11.662 us 11.6905 us
53.4083 ns 9.6442 ns 125.41 ns
COW_Vector_rserv_itr FillUni_List
100 100 1 3.5791 ms
35.2218 us 35.2026 us 35.2506 us
117.845 ns 88.5611 ns 203.828 ns
COW_Vector_rserv_itr FillUni_List
1000 100 1 187.428 ms
1.87582 ms 1.87438 ms 1.8777 ms
8.33879 us 6.44822 us 10.868 us
COW_DArray_rserv_itr FillUni_List
50 100 4 2.6736 ms
6.71567 us 6.69076 us 6.76715 us
174.364 ns 94.5339 ns 281.455 ns
COW_DArray_rserv_itr FillUni_List
100 100 2 3.2104 ms
16.0465 us 16.0267 us 16.1416 us
187.471 ns 4.82185 ns 446.259 ns
COW_DArray_rserv_itr FillUni_List
1000 100 1 59.1563 ms
589.376 us 588.917 us 589.877 us
2.44301 us 2.09285 us 2.8452 us
===============================================================================
All tests passed (64667504 assertions in 3 test cases)
|