data-structure-typed 1.48.0 → 1.48.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/README.md +16 -16
- package/benchmark/report.html +16 -16
- package/benchmark/report.json +172 -292
- package/dist/cjs/data-structures/binary-tree/avl-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/binary-indexed-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/binary-tree.d.ts +38 -0
- package/dist/cjs/data-structures/binary-tree/binary-tree.js +54 -0
- package/dist/cjs/data-structures/binary-tree/binary-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/bst.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/rb-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/segment-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/tree-multimap.d.ts +12 -0
- package/dist/cjs/data-structures/binary-tree/tree-multimap.js +16 -0
- package/dist/cjs/data-structures/binary-tree/tree-multimap.js.map +1 -1
- package/dist/cjs/data-structures/graph/abstract-graph.js.map +1 -1
- package/dist/cjs/data-structures/graph/directed-graph.js.map +1 -1
- package/dist/cjs/data-structures/graph/undirected-graph.js.map +1 -1
- package/dist/cjs/data-structures/hash/hash-map.d.ts +173 -16
- package/dist/cjs/data-structures/hash/hash-map.js +373 -37
- package/dist/cjs/data-structures/hash/hash-map.js.map +1 -1
- package/dist/cjs/data-structures/hash/hash-table.js.map +1 -1
- package/dist/cjs/data-structures/heap/heap.js.map +1 -1
- package/dist/cjs/data-structures/heap/max-heap.js.map +1 -1
- package/dist/cjs/data-structures/heap/min-heap.js.map +1 -1
- package/dist/cjs/data-structures/linked-list/doubly-linked-list.js.map +1 -1
- package/dist/cjs/data-structures/linked-list/singly-linked-list.js.map +1 -1
- package/dist/cjs/data-structures/linked-list/skip-linked-list.js.map +1 -1
- package/dist/cjs/data-structures/matrix/matrix2d.js.map +1 -1
- package/dist/cjs/data-structures/matrix/navigator.js.map +1 -1
- package/dist/cjs/data-structures/matrix/vector2d.js.map +1 -1
- package/dist/cjs/data-structures/priority-queue/max-priority-queue.js.map +1 -1
- package/dist/cjs/data-structures/priority-queue/min-priority-queue.js.map +1 -1
- package/dist/cjs/data-structures/queue/deque.js.map +1 -1
- package/dist/cjs/data-structures/queue/queue.js.map +1 -1
- package/dist/cjs/data-structures/stack/stack.js.map +1 -1
- package/dist/cjs/data-structures/tree/tree.js.map +1 -1
- package/dist/cjs/data-structures/trie/trie.js.map +1 -1
- package/dist/cjs/types/data-structures/hash/hash-map.d.ts +4 -0
- package/dist/cjs/utils/utils.js.map +1 -1
- package/dist/mjs/data-structures/binary-tree/binary-tree.d.ts +38 -0
- package/dist/mjs/data-structures/binary-tree/binary-tree.js +54 -0
- package/dist/mjs/data-structures/binary-tree/tree-multimap.d.ts +12 -0
- package/dist/mjs/data-structures/binary-tree/tree-multimap.js +16 -0
- package/dist/mjs/data-structures/hash/hash-map.d.ts +173 -16
- package/dist/mjs/data-structures/hash/hash-map.js +369 -35
- package/dist/mjs/types/data-structures/hash/hash-map.d.ts +4 -0
- package/dist/umd/data-structure-typed.js +429 -31
- package/dist/umd/data-structure-typed.min.js +2 -2
- package/dist/umd/data-structure-typed.min.js.map +1 -1
- package/package.json +2 -2
- package/src/data-structures/binary-tree/binary-tree.ts +62 -1
- package/src/data-structures/binary-tree/tree-multimap.ts +18 -0
- package/src/data-structures/hash/hash-map.ts +400 -40
- package/src/types/data-structures/hash/hash-map.ts +2 -0
- package/test/integration/avl-tree.test.ts +2 -2
- package/test/integration/bst.test.ts +21 -25
- package/test/performance/data-structures/binary-tree/binary-tree.test.ts +17 -12
- package/test/unit/data-structures/binary-tree/avl-tree.test.ts +16 -0
- package/test/unit/data-structures/binary-tree/binary-tree.test.ts +16 -1
- package/test/unit/data-structures/binary-tree/bst.test.ts +16 -0
- package/test/unit/data-structures/binary-tree/tree-multimap.test.ts +82 -1
- package/test/unit/data-structures/hash/hash-map.test.ts +312 -18
package/benchmark/report.json
CHANGED
|
@@ -3,27 +3,27 @@
|
|
|
3
3
|
"benchmarks": [
|
|
4
4
|
{
|
|
5
5
|
"test name": "10,000 add randomly",
|
|
6
|
-
"time taken (ms)": "
|
|
7
|
-
"executions per sec": "
|
|
8
|
-
"sample deviation": "
|
|
6
|
+
"time taken (ms)": "30.05",
|
|
7
|
+
"executions per sec": "33.28",
|
|
8
|
+
"sample deviation": "6.97e-4"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"test name": "10,000 add & delete randomly",
|
|
12
|
-
"time taken (ms)": "
|
|
13
|
-
"executions per sec": "13.
|
|
12
|
+
"time taken (ms)": "72.61",
|
|
13
|
+
"executions per sec": "13.77",
|
|
14
14
|
"sample deviation": "0.00"
|
|
15
15
|
},
|
|
16
16
|
{
|
|
17
17
|
"test name": "10,000 addMany",
|
|
18
|
-
"time taken (ms)": "
|
|
19
|
-
"executions per sec": "
|
|
20
|
-
"sample deviation": "
|
|
18
|
+
"time taken (ms)": "35.18",
|
|
19
|
+
"executions per sec": "28.43",
|
|
20
|
+
"sample deviation": "9.64e-4"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"test name": "10,000 get",
|
|
24
|
-
"time taken (ms)": "
|
|
25
|
-
"executions per sec": "
|
|
26
|
-
"sample deviation": "
|
|
24
|
+
"time taken (ms)": "30.02",
|
|
25
|
+
"executions per sec": "33.31",
|
|
26
|
+
"sample deviation": "5.36e-4"
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
"testName": "avl-tree"
|
|
@@ -32,44 +32,50 @@
|
|
|
32
32
|
"benchmarks": [
|
|
33
33
|
{
|
|
34
34
|
"test name": "1,000 add randomly",
|
|
35
|
-
"time taken (ms)": "14.
|
|
36
|
-
"executions per sec": "
|
|
37
|
-
"sample deviation": "1.
|
|
35
|
+
"time taken (ms)": "14.72",
|
|
36
|
+
"executions per sec": "67.92",
|
|
37
|
+
"sample deviation": "1.85e-4"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"test name": "1,000 add & delete randomly",
|
|
41
|
-
"time taken (ms)": "
|
|
42
|
-
"executions per sec": "
|
|
43
|
-
"sample deviation": "
|
|
41
|
+
"time taken (ms)": "18.55",
|
|
42
|
+
"executions per sec": "53.90",
|
|
43
|
+
"sample deviation": "3.16e-4"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"test name": "1,000 addMany",
|
|
47
|
-
"time taken (ms)": "
|
|
48
|
-
"executions per sec": "
|
|
49
|
-
"sample deviation": "
|
|
47
|
+
"time taken (ms)": "13.40",
|
|
48
|
+
"executions per sec": "74.62",
|
|
49
|
+
"sample deviation": "0.00"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"test name": "1,000 get",
|
|
53
|
-
"time taken (ms)": "18.
|
|
54
|
-
"executions per sec": "
|
|
55
|
-
"sample deviation": "
|
|
53
|
+
"time taken (ms)": "18.70",
|
|
54
|
+
"executions per sec": "53.47",
|
|
55
|
+
"sample deviation": "3.85e-4"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"test name": "1,000 has",
|
|
59
|
+
"time taken (ms)": "19.28",
|
|
60
|
+
"executions per sec": "51.87",
|
|
61
|
+
"sample deviation": "0.00"
|
|
56
62
|
},
|
|
57
63
|
{
|
|
58
64
|
"test name": "1,000 dfs",
|
|
59
|
-
"time taken (ms)": "
|
|
60
|
-
"executions per sec": "6.
|
|
61
|
-
"sample deviation": "
|
|
65
|
+
"time taken (ms)": "158.14",
|
|
66
|
+
"executions per sec": "6.32",
|
|
67
|
+
"sample deviation": "0.01"
|
|
62
68
|
},
|
|
63
69
|
{
|
|
64
70
|
"test name": "1,000 bfs",
|
|
65
|
-
"time taken (ms)": "
|
|
66
|
-
"executions per sec": "17.
|
|
67
|
-
"sample deviation": "
|
|
71
|
+
"time taken (ms)": "56.98",
|
|
72
|
+
"executions per sec": "17.55",
|
|
73
|
+
"sample deviation": "8.96e-4"
|
|
68
74
|
},
|
|
69
75
|
{
|
|
70
76
|
"test name": "1,000 morris",
|
|
71
|
-
"time taken (ms)": "
|
|
72
|
-
"executions per sec": "3.
|
|
77
|
+
"time taken (ms)": "260.83",
|
|
78
|
+
"executions per sec": "3.83",
|
|
73
79
|
"sample deviation": "0.00"
|
|
74
80
|
}
|
|
75
81
|
],
|
|
@@ -79,27 +85,27 @@
|
|
|
79
85
|
"benchmarks": [
|
|
80
86
|
{
|
|
81
87
|
"test name": "10,000 add randomly",
|
|
82
|
-
"time taken (ms)": "
|
|
83
|
-
"executions per sec": "
|
|
84
|
-
"sample deviation": "
|
|
88
|
+
"time taken (ms)": "26.61",
|
|
89
|
+
"executions per sec": "37.58",
|
|
90
|
+
"sample deviation": "6.20e-4"
|
|
85
91
|
},
|
|
86
92
|
{
|
|
87
93
|
"test name": "10,000 add & delete randomly",
|
|
88
|
-
"time taken (ms)": "
|
|
89
|
-
"executions per sec": "
|
|
94
|
+
"time taken (ms)": "68.64",
|
|
95
|
+
"executions per sec": "14.57",
|
|
90
96
|
"sample deviation": "0.00"
|
|
91
97
|
},
|
|
92
98
|
{
|
|
93
99
|
"test name": "10,000 addMany",
|
|
94
|
-
"time taken (ms)": "
|
|
95
|
-
"executions per sec": "
|
|
96
|
-
"sample deviation": "
|
|
100
|
+
"time taken (ms)": "25.65",
|
|
101
|
+
"executions per sec": "38.99",
|
|
102
|
+
"sample deviation": "8.34e-5"
|
|
97
103
|
},
|
|
98
104
|
{
|
|
99
105
|
"test name": "10,000 get",
|
|
100
|
-
"time taken (ms)": "
|
|
101
|
-
"executions per sec": "
|
|
102
|
-
"sample deviation": "0.
|
|
106
|
+
"time taken (ms)": "33.11",
|
|
107
|
+
"executions per sec": "30.21",
|
|
108
|
+
"sample deviation": "0.02"
|
|
103
109
|
}
|
|
104
110
|
],
|
|
105
111
|
"testName": "bst"
|
|
@@ -108,33 +114,27 @@
|
|
|
108
114
|
"benchmarks": [
|
|
109
115
|
{
|
|
110
116
|
"test name": "100,000 add",
|
|
111
|
-
"time taken (ms)": "
|
|
112
|
-
"executions per sec": "11.
|
|
113
|
-
"sample deviation": "0.00"
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
"test name": "100,000 CPT add",
|
|
117
|
-
"time taken (ms)": "50.65",
|
|
118
|
-
"executions per sec": "19.74",
|
|
117
|
+
"time taken (ms)": "85.61",
|
|
118
|
+
"executions per sec": "11.68",
|
|
119
119
|
"sample deviation": "0.00"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"test name": "100,000 add & delete randomly",
|
|
123
|
-
"time taken (ms)": "
|
|
124
|
-
"executions per sec": "4.
|
|
125
|
-
"sample deviation": "0.
|
|
123
|
+
"time taken (ms)": "214.04",
|
|
124
|
+
"executions per sec": "4.67",
|
|
125
|
+
"sample deviation": "0.01"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"test name": "100,000 getNode",
|
|
129
|
-
"time taken (ms)": "
|
|
130
|
-
"executions per sec": "
|
|
131
|
-
"sample deviation": "
|
|
129
|
+
"time taken (ms)": "154.49",
|
|
130
|
+
"executions per sec": "6.47",
|
|
131
|
+
"sample deviation": "4.10e-4"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"test name": "100,000 add & iterator",
|
|
135
|
-
"time taken (ms)": "
|
|
136
|
-
"executions per sec": "8.
|
|
137
|
-
"sample deviation": "0.
|
|
135
|
+
"time taken (ms)": "115.20",
|
|
136
|
+
"executions per sec": "8.68",
|
|
137
|
+
"sample deviation": "0.00"
|
|
138
138
|
}
|
|
139
139
|
],
|
|
140
140
|
"testName": "rb-tree"
|
|
@@ -143,105 +143,39 @@
|
|
|
143
143
|
"benchmarks": [
|
|
144
144
|
{
|
|
145
145
|
"test name": "SRC PQ 10,000 add",
|
|
146
|
-
"time taken (ms)": "0.
|
|
147
|
-
"executions per sec": "
|
|
148
|
-
"sample deviation": "
|
|
146
|
+
"time taken (ms)": "0.16",
|
|
147
|
+
"executions per sec": "6447.35",
|
|
148
|
+
"sample deviation": "3.77e-5"
|
|
149
149
|
},
|
|
150
150
|
{
|
|
151
151
|
"test name": "CJS PQ 10,000 add",
|
|
152
152
|
"time taken (ms)": "0.15",
|
|
153
|
-
"executions per sec": "
|
|
154
|
-
"sample deviation": "
|
|
153
|
+
"executions per sec": "6865.39",
|
|
154
|
+
"sample deviation": "5.18e-6"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"test name": "MJS PQ 10,000 add",
|
|
158
|
-
"time taken (ms)": "0.
|
|
159
|
-
"executions per sec": "
|
|
160
|
-
"sample deviation": "1.
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"test name": "CPT PQ 10,000 add",
|
|
164
|
-
"time taken (ms)": "0.57",
|
|
165
|
-
"executions per sec": "1744.71",
|
|
166
|
-
"sample deviation": "1.01e-5"
|
|
158
|
+
"time taken (ms)": "0.58",
|
|
159
|
+
"executions per sec": "1737.03",
|
|
160
|
+
"sample deviation": "1.95e-5"
|
|
167
161
|
},
|
|
168
162
|
{
|
|
169
163
|
"test name": "SRC PQ 10,000 add & pop",
|
|
170
|
-
"time taken (ms)": "3.
|
|
171
|
-
"executions per sec": "
|
|
172
|
-
"sample deviation": "6.
|
|
164
|
+
"time taken (ms)": "3.44",
|
|
165
|
+
"executions per sec": "290.59",
|
|
166
|
+
"sample deviation": "6.14e-5"
|
|
173
167
|
},
|
|
174
168
|
{
|
|
175
169
|
"test name": "CJS PQ 10,000 add & pop",
|
|
176
|
-
"time taken (ms)": "3.
|
|
177
|
-
"executions per sec": "
|
|
178
|
-
"sample deviation": "
|
|
170
|
+
"time taken (ms)": "3.43",
|
|
171
|
+
"executions per sec": "291.48",
|
|
172
|
+
"sample deviation": "5.86e-5"
|
|
179
173
|
},
|
|
180
174
|
{
|
|
181
175
|
"test name": "MJS PQ 10,000 add & pop",
|
|
182
|
-
"time taken (ms)": "
|
|
183
|
-
"executions per sec": "
|
|
184
|
-
"sample deviation": "
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"test name": "CPT PQ 10,000 add & pop",
|
|
188
|
-
"time taken (ms)": "2.09",
|
|
189
|
-
"executions per sec": "478.76",
|
|
190
|
-
"sample deviation": "2.28e-5"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
"test name": "CPT OM 100,000 add",
|
|
194
|
-
"time taken (ms)": "43.22",
|
|
195
|
-
"executions per sec": "23.14",
|
|
196
|
-
"sample deviation": "0.00"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"test name": "CPT HM 10,000 set",
|
|
200
|
-
"time taken (ms)": "0.58",
|
|
201
|
-
"executions per sec": "1721.25",
|
|
202
|
-
"sample deviation": "1.85e-5"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
"test name": "CPT HM 10,000 set & get",
|
|
206
|
-
"time taken (ms)": "0.68",
|
|
207
|
-
"executions per sec": "1477.31",
|
|
208
|
-
"sample deviation": "1.26e-5"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"test name": "CPT LL 1,000,000 unshift",
|
|
212
|
-
"time taken (ms)": "81.38",
|
|
213
|
-
"executions per sec": "12.29",
|
|
214
|
-
"sample deviation": "0.02"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
"test name": "CPT PQ 10,000 add & pop",
|
|
218
|
-
"time taken (ms)": "2.10",
|
|
219
|
-
"executions per sec": "476.50",
|
|
220
|
-
"sample deviation": "1.60e-4"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"test name": "CPT DQ 1,000,000 push",
|
|
224
|
-
"time taken (ms)": "22.51",
|
|
225
|
-
"executions per sec": "44.42",
|
|
226
|
-
"sample deviation": "0.00"
|
|
227
|
-
},
|
|
228
|
-
{
|
|
229
|
-
"test name": "CPT Q 1,000,000 push",
|
|
230
|
-
"time taken (ms)": "47.85",
|
|
231
|
-
"executions per sec": "20.90",
|
|
232
|
-
"sample deviation": "0.01"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"test name": "CPT ST 1,000,000 push",
|
|
236
|
-
"time taken (ms)": "42.54",
|
|
237
|
-
"executions per sec": "23.51",
|
|
238
|
-
"sample deviation": "0.01"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"test name": "CPT ST 1,000,000 push & pop",
|
|
242
|
-
"time taken (ms)": "50.08",
|
|
243
|
-
"executions per sec": "19.97",
|
|
244
|
-
"sample deviation": "0.00"
|
|
176
|
+
"time taken (ms)": "4.29",
|
|
177
|
+
"executions per sec": "233.18",
|
|
178
|
+
"sample deviation": "1.71e-4"
|
|
245
179
|
}
|
|
246
180
|
],
|
|
247
181
|
"testName": "comparison"
|
|
@@ -250,45 +184,45 @@
|
|
|
250
184
|
"benchmarks": [
|
|
251
185
|
{
|
|
252
186
|
"test name": "1,000 addVertex",
|
|
253
|
-
"time taken (ms)": "0.
|
|
254
|
-
"executions per sec": "
|
|
255
|
-
"sample deviation": "
|
|
187
|
+
"time taken (ms)": "0.10",
|
|
188
|
+
"executions per sec": "9639.13",
|
|
189
|
+
"sample deviation": "3.31e-6"
|
|
256
190
|
},
|
|
257
191
|
{
|
|
258
192
|
"test name": "1,000 addEdge",
|
|
259
|
-
"time taken (ms)": "6.
|
|
260
|
-
"executions per sec": "
|
|
261
|
-
"sample deviation": "
|
|
193
|
+
"time taken (ms)": "6.21",
|
|
194
|
+
"executions per sec": "161.12",
|
|
195
|
+
"sample deviation": "2.90e-4"
|
|
262
196
|
},
|
|
263
197
|
{
|
|
264
198
|
"test name": "1,000 getVertex",
|
|
265
199
|
"time taken (ms)": "0.05",
|
|
266
|
-
"executions per sec": "2.
|
|
267
|
-
"sample deviation": "
|
|
200
|
+
"executions per sec": "2.13e+4",
|
|
201
|
+
"sample deviation": "1.42e-6"
|
|
268
202
|
},
|
|
269
203
|
{
|
|
270
204
|
"test name": "1,000 getEdge",
|
|
271
|
-
"time taken (ms)": "
|
|
272
|
-
"executions per sec": "
|
|
205
|
+
"time taken (ms)": "27.34",
|
|
206
|
+
"executions per sec": "36.57",
|
|
273
207
|
"sample deviation": "0.01"
|
|
274
208
|
},
|
|
275
209
|
{
|
|
276
210
|
"test name": "tarjan",
|
|
277
|
-
"time taken (ms)": "
|
|
278
|
-
"executions per sec": "4.
|
|
211
|
+
"time taken (ms)": "228.62",
|
|
212
|
+
"executions per sec": "4.37",
|
|
279
213
|
"sample deviation": "0.01"
|
|
280
214
|
},
|
|
281
215
|
{
|
|
282
216
|
"test name": "tarjan all",
|
|
283
|
-
"time taken (ms)": "
|
|
284
|
-
"executions per sec": "4.
|
|
285
|
-
"sample deviation": "0.
|
|
217
|
+
"time taken (ms)": "241.47",
|
|
218
|
+
"executions per sec": "4.14",
|
|
219
|
+
"sample deviation": "0.05"
|
|
286
220
|
},
|
|
287
221
|
{
|
|
288
222
|
"test name": "topologicalSort",
|
|
289
|
-
"time taken (ms)": "
|
|
290
|
-
"executions per sec": "5.
|
|
291
|
-
"sample deviation": "0.
|
|
223
|
+
"time taken (ms)": "193.23",
|
|
224
|
+
"executions per sec": "5.18",
|
|
225
|
+
"sample deviation": "0.02"
|
|
292
226
|
}
|
|
293
227
|
],
|
|
294
228
|
"testName": "directed-graph"
|
|
@@ -297,69 +231,57 @@
|
|
|
297
231
|
"benchmarks": [
|
|
298
232
|
{
|
|
299
233
|
"test name": "1,000,000 set",
|
|
300
|
-
"time taken (ms)": "
|
|
301
|
-
"executions per sec": "
|
|
234
|
+
"time taken (ms)": "116.85",
|
|
235
|
+
"executions per sec": "8.56",
|
|
302
236
|
"sample deviation": "0.04"
|
|
303
237
|
},
|
|
304
|
-
{
|
|
305
|
-
"test name": "1,000,000 CPT set",
|
|
306
|
-
"time taken (ms)": "251.21",
|
|
307
|
-
"executions per sec": "3.98",
|
|
308
|
-
"sample deviation": "0.03"
|
|
309
|
-
},
|
|
310
238
|
{
|
|
311
239
|
"test name": "1,000,000 Map set",
|
|
312
|
-
"time taken (ms)": "
|
|
313
|
-
"executions per sec": "4.
|
|
314
|
-
"sample deviation": "0.
|
|
240
|
+
"time taken (ms)": "216.07",
|
|
241
|
+
"executions per sec": "4.63",
|
|
242
|
+
"sample deviation": "0.02"
|
|
315
243
|
},
|
|
316
244
|
{
|
|
317
245
|
"test name": "1,000,000 Set add",
|
|
318
|
-
"time taken (ms)": "
|
|
319
|
-
"executions per sec": "5.
|
|
320
|
-
"sample deviation": "0.
|
|
246
|
+
"time taken (ms)": "173.91",
|
|
247
|
+
"executions per sec": "5.75",
|
|
248
|
+
"sample deviation": "0.01"
|
|
321
249
|
},
|
|
322
250
|
{
|
|
323
251
|
"test name": "1,000,000 set & get",
|
|
324
|
-
"time taken (ms)": "
|
|
325
|
-
"executions per sec": "
|
|
326
|
-
"sample deviation": "0.
|
|
327
|
-
},
|
|
328
|
-
{
|
|
329
|
-
"test name": "1,000,000 CPT set & get",
|
|
330
|
-
"time taken (ms)": "283.34",
|
|
331
|
-
"executions per sec": "3.53",
|
|
332
|
-
"sample deviation": "0.07"
|
|
252
|
+
"time taken (ms)": "124.87",
|
|
253
|
+
"executions per sec": "8.01",
|
|
254
|
+
"sample deviation": "0.04"
|
|
333
255
|
},
|
|
334
256
|
{
|
|
335
257
|
"test name": "1,000,000 Map set & get",
|
|
336
|
-
"time taken (ms)": "
|
|
337
|
-
"executions per sec": "3.
|
|
258
|
+
"time taken (ms)": "323.10",
|
|
259
|
+
"executions per sec": "3.10",
|
|
338
260
|
"sample deviation": "0.04"
|
|
339
261
|
},
|
|
340
262
|
{
|
|
341
263
|
"test name": "1,000,000 Set add & has",
|
|
342
|
-
"time taken (ms)": "
|
|
343
|
-
"executions per sec": "5.
|
|
344
|
-
"sample deviation": "0.
|
|
264
|
+
"time taken (ms)": "180.32",
|
|
265
|
+
"executions per sec": "5.55",
|
|
266
|
+
"sample deviation": "0.02"
|
|
345
267
|
},
|
|
346
268
|
{
|
|
347
269
|
"test name": "1,000,000 ObjKey set & get",
|
|
348
|
-
"time taken (ms)": "
|
|
349
|
-
"executions per sec": "
|
|
350
|
-
"sample deviation": "0.
|
|
270
|
+
"time taken (ms)": "335.51",
|
|
271
|
+
"executions per sec": "2.98",
|
|
272
|
+
"sample deviation": "0.07"
|
|
351
273
|
},
|
|
352
274
|
{
|
|
353
275
|
"test name": "1,000,000 Map ObjKey set & get",
|
|
354
|
-
"time taken (ms)": "
|
|
355
|
-
"executions per sec": "
|
|
356
|
-
"sample deviation": "0.
|
|
276
|
+
"time taken (ms)": "310.64",
|
|
277
|
+
"executions per sec": "3.22",
|
|
278
|
+
"sample deviation": "0.06"
|
|
357
279
|
},
|
|
358
280
|
{
|
|
359
281
|
"test name": "1,000,000 Set ObjKey add & has",
|
|
360
|
-
"time taken (ms)": "
|
|
361
|
-
"executions per sec": "3.
|
|
362
|
-
"sample deviation": "0.
|
|
282
|
+
"time taken (ms)": "271.15",
|
|
283
|
+
"executions per sec": "3.69",
|
|
284
|
+
"sample deviation": "0.05"
|
|
363
285
|
}
|
|
364
286
|
],
|
|
365
287
|
"testName": "hash-map"
|
|
@@ -368,21 +290,21 @@
|
|
|
368
290
|
"benchmarks": [
|
|
369
291
|
{
|
|
370
292
|
"test name": "100,000 add & pop",
|
|
371
|
-
"time taken (ms)": "
|
|
372
|
-
"executions per sec": "12.
|
|
293
|
+
"time taken (ms)": "79.43",
|
|
294
|
+
"executions per sec": "12.59",
|
|
373
295
|
"sample deviation": "0.00"
|
|
374
296
|
},
|
|
375
297
|
{
|
|
376
298
|
"test name": "100,000 add & dfs",
|
|
377
|
-
"time taken (ms)": "
|
|
378
|
-
"executions per sec": "28.
|
|
299
|
+
"time taken (ms)": "34.78",
|
|
300
|
+
"executions per sec": "28.75",
|
|
379
301
|
"sample deviation": "0.00"
|
|
380
302
|
},
|
|
381
303
|
{
|
|
382
304
|
"test name": "10,000 fib add & pop",
|
|
383
|
-
"time taken (ms)": "
|
|
384
|
-
"executions per sec": "2.
|
|
385
|
-
"sample deviation": "0.
|
|
305
|
+
"time taken (ms)": "356.18",
|
|
306
|
+
"executions per sec": "2.81",
|
|
307
|
+
"sample deviation": "0.00"
|
|
386
308
|
}
|
|
387
309
|
],
|
|
388
310
|
"testName": "heap"
|
|
@@ -391,39 +313,27 @@
|
|
|
391
313
|
"benchmarks": [
|
|
392
314
|
{
|
|
393
315
|
"test name": "1,000,000 push",
|
|
394
|
-
"time taken (ms)": "
|
|
395
|
-
"executions per sec": "4.
|
|
396
|
-
"sample deviation": "0.07"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
"test name": "1,000,000 CPT push",
|
|
400
|
-
"time taken (ms)": "75.66",
|
|
401
|
-
"executions per sec": "13.22",
|
|
402
|
-
"sample deviation": "0.03"
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
"test name": "1,000,000 unshift",
|
|
406
|
-
"time taken (ms)": "226.38",
|
|
407
|
-
"executions per sec": "4.42",
|
|
316
|
+
"time taken (ms)": "222.75",
|
|
317
|
+
"executions per sec": "4.49",
|
|
408
318
|
"sample deviation": "0.05"
|
|
409
319
|
},
|
|
410
320
|
{
|
|
411
|
-
"test name": "1,000,000
|
|
412
|
-
"time taken (ms)": "
|
|
413
|
-
"executions per sec": "
|
|
414
|
-
"sample deviation": "0.
|
|
321
|
+
"test name": "1,000,000 unshift",
|
|
322
|
+
"time taken (ms)": "235.70",
|
|
323
|
+
"executions per sec": "4.24",
|
|
324
|
+
"sample deviation": "0.06"
|
|
415
325
|
},
|
|
416
326
|
{
|
|
417
327
|
"test name": "1,000,000 unshift & shift",
|
|
418
|
-
"time taken (ms)": "
|
|
419
|
-
"executions per sec": "5.
|
|
420
|
-
"sample deviation": "0.
|
|
328
|
+
"time taken (ms)": "179.26",
|
|
329
|
+
"executions per sec": "5.58",
|
|
330
|
+
"sample deviation": "0.04"
|
|
421
331
|
},
|
|
422
332
|
{
|
|
423
333
|
"test name": "1,000,000 insertBefore",
|
|
424
|
-
"time taken (ms)": "
|
|
425
|
-
"executions per sec": "
|
|
426
|
-
"sample deviation": "0.
|
|
334
|
+
"time taken (ms)": "340.92",
|
|
335
|
+
"executions per sec": "2.93",
|
|
336
|
+
"sample deviation": "0.07"
|
|
427
337
|
}
|
|
428
338
|
],
|
|
429
339
|
"testName": "doubly-linked-list"
|
|
@@ -432,14 +342,14 @@
|
|
|
432
342
|
"benchmarks": [
|
|
433
343
|
{
|
|
434
344
|
"test name": "10,000 push & pop",
|
|
435
|
-
"time taken (ms)": "
|
|
436
|
-
"executions per sec": "4.
|
|
345
|
+
"time taken (ms)": "213.00",
|
|
346
|
+
"executions per sec": "4.69",
|
|
437
347
|
"sample deviation": "0.01"
|
|
438
348
|
},
|
|
439
349
|
{
|
|
440
350
|
"test name": "10,000 insertBefore",
|
|
441
|
-
"time taken (ms)": "
|
|
442
|
-
"executions per sec": "
|
|
351
|
+
"time taken (ms)": "248.65",
|
|
352
|
+
"executions per sec": "4.02",
|
|
443
353
|
"sample deviation": "0.01"
|
|
444
354
|
}
|
|
445
355
|
],
|
|
@@ -449,9 +359,9 @@
|
|
|
449
359
|
"benchmarks": [
|
|
450
360
|
{
|
|
451
361
|
"test name": "10,000 refill & poll",
|
|
452
|
-
"time taken (ms)": "9.
|
|
453
|
-
"executions per sec": "
|
|
454
|
-
"sample deviation": "
|
|
362
|
+
"time taken (ms)": "9.15",
|
|
363
|
+
"executions per sec": "109.23",
|
|
364
|
+
"sample deviation": "4.05e-4"
|
|
455
365
|
}
|
|
456
366
|
],
|
|
457
367
|
"testName": "max-priority-queue"
|
|
@@ -460,14 +370,8 @@
|
|
|
460
370
|
"benchmarks": [
|
|
461
371
|
{
|
|
462
372
|
"test name": "100,000 add & pop",
|
|
463
|
-
"time taken (ms)": "
|
|
464
|
-
"executions per sec": "9.
|
|
465
|
-
"sample deviation": "7.95e-4"
|
|
466
|
-
},
|
|
467
|
-
{
|
|
468
|
-
"test name": "100,000 CPT add & pop",
|
|
469
|
-
"time taken (ms)": "28.54",
|
|
470
|
-
"executions per sec": "35.04",
|
|
373
|
+
"time taken (ms)": "102.30",
|
|
374
|
+
"executions per sec": "9.78",
|
|
471
375
|
"sample deviation": "0.00"
|
|
472
376
|
}
|
|
473
377
|
],
|
|
@@ -477,33 +381,27 @@
|
|
|
477
381
|
"benchmarks": [
|
|
478
382
|
{
|
|
479
383
|
"test name": "1,000,000 push",
|
|
480
|
-
"time taken (ms)": "14.
|
|
481
|
-
"executions per sec": "
|
|
482
|
-
"sample deviation": "
|
|
483
|
-
},
|
|
484
|
-
{
|
|
485
|
-
"test name": "1,000,000 CPT push",
|
|
486
|
-
"time taken (ms)": "25.08",
|
|
487
|
-
"executions per sec": "39.87",
|
|
488
|
-
"sample deviation": "0.01"
|
|
384
|
+
"time taken (ms)": "14.58",
|
|
385
|
+
"executions per sec": "68.59",
|
|
386
|
+
"sample deviation": "1.47e-4"
|
|
489
387
|
},
|
|
490
388
|
{
|
|
491
389
|
"test name": "1,000,000 push & pop",
|
|
492
|
-
"time taken (ms)": "
|
|
493
|
-
"executions per sec": "
|
|
494
|
-
"sample deviation": "
|
|
390
|
+
"time taken (ms)": "23.44",
|
|
391
|
+
"executions per sec": "42.67",
|
|
392
|
+
"sample deviation": "1.85e-4"
|
|
495
393
|
},
|
|
496
394
|
{
|
|
497
395
|
"test name": "1,000,000 push & shift",
|
|
498
|
-
"time taken (ms)": "
|
|
499
|
-
"executions per sec": "
|
|
500
|
-
"sample deviation": "
|
|
396
|
+
"time taken (ms)": "24.51",
|
|
397
|
+
"executions per sec": "40.80",
|
|
398
|
+
"sample deviation": "1.39e-4"
|
|
501
399
|
},
|
|
502
400
|
{
|
|
503
401
|
"test name": "1,000,000 unshift & shift",
|
|
504
|
-
"time taken (ms)": "
|
|
505
|
-
"executions per sec": "
|
|
506
|
-
"sample deviation": "
|
|
402
|
+
"time taken (ms)": "22.78",
|
|
403
|
+
"executions per sec": "43.91",
|
|
404
|
+
"sample deviation": "0.00"
|
|
507
405
|
}
|
|
508
406
|
],
|
|
509
407
|
"testName": "deque"
|
|
@@ -512,20 +410,14 @@
|
|
|
512
410
|
"benchmarks": [
|
|
513
411
|
{
|
|
514
412
|
"test name": "1,000,000 push",
|
|
515
|
-
"time taken (ms)": "
|
|
516
|
-
"executions per sec": "25.
|
|
517
|
-
"sample deviation": "9.08e-4"
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
"test name": "1,000,000 CPT push",
|
|
521
|
-
"time taken (ms)": "43.93",
|
|
522
|
-
"executions per sec": "22.76",
|
|
413
|
+
"time taken (ms)": "39.36",
|
|
414
|
+
"executions per sec": "25.41",
|
|
523
415
|
"sample deviation": "0.01"
|
|
524
416
|
},
|
|
525
417
|
{
|
|
526
418
|
"test name": "1,000,000 push & shift",
|
|
527
|
-
"time taken (ms)": "
|
|
528
|
-
"executions per sec": "12.
|
|
419
|
+
"time taken (ms)": "81.81",
|
|
420
|
+
"executions per sec": "12.22",
|
|
529
421
|
"sample deviation": "0.00"
|
|
530
422
|
}
|
|
531
423
|
],
|
|
@@ -535,27 +427,15 @@
|
|
|
535
427
|
"benchmarks": [
|
|
536
428
|
{
|
|
537
429
|
"test name": "1,000,000 push",
|
|
538
|
-
"time taken (ms)": "
|
|
539
|
-
"executions per sec": "
|
|
540
|
-
"sample deviation": "0.01"
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
"test name": "1,000,000 CPT push",
|
|
544
|
-
"time taken (ms)": "39.87",
|
|
545
|
-
"executions per sec": "25.08",
|
|
430
|
+
"time taken (ms)": "38.89",
|
|
431
|
+
"executions per sec": "25.72",
|
|
546
432
|
"sample deviation": "0.00"
|
|
547
433
|
},
|
|
548
434
|
{
|
|
549
435
|
"test name": "1,000,000 push & pop",
|
|
550
|
-
"time taken (ms)": "
|
|
551
|
-
"executions per sec": "
|
|
436
|
+
"time taken (ms)": "44.21",
|
|
437
|
+
"executions per sec": "22.62",
|
|
552
438
|
"sample deviation": "0.01"
|
|
553
|
-
},
|
|
554
|
-
{
|
|
555
|
-
"test name": "1,000,000 CPT push & pop",
|
|
556
|
-
"time taken (ms)": "46.65",
|
|
557
|
-
"executions per sec": "21.44",
|
|
558
|
-
"sample deviation": "0.00"
|
|
559
439
|
}
|
|
560
440
|
],
|
|
561
441
|
"testName": "stack"
|
|
@@ -564,14 +444,14 @@
|
|
|
564
444
|
"benchmarks": [
|
|
565
445
|
{
|
|
566
446
|
"test name": "100,000 push",
|
|
567
|
-
"time taken (ms)": "
|
|
568
|
-
"executions per sec": "
|
|
569
|
-
"sample deviation": "
|
|
447
|
+
"time taken (ms)": "44.22",
|
|
448
|
+
"executions per sec": "22.61",
|
|
449
|
+
"sample deviation": "0.00"
|
|
570
450
|
},
|
|
571
451
|
{
|
|
572
452
|
"test name": "100,000 getWords",
|
|
573
|
-
"time taken (ms)": "
|
|
574
|
-
"executions per sec": "
|
|
453
|
+
"time taken (ms)": "89.31",
|
|
454
|
+
"executions per sec": "11.20",
|
|
575
455
|
"sample deviation": "0.00"
|
|
576
456
|
}
|
|
577
457
|
],
|