data-structure-typed 1.50.4 → 1.50.5
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 +116 -55
- package/SPECIFICATION.md +2 -2
- package/SPECIFICATION_zh-CN.md +81 -0
- package/{SPONSOR-zh-CN.md → SPONSOR_zh-CN.md} +1 -1
- package/benchmark/report.html +24 -24
- package/benchmark/report.json +242 -242
- package/dist/cjs/data-structures/base/iterable-base.d.ts +10 -8
- package/dist/cjs/data-structures/base/iterable-base.js +8 -12
- package/dist/cjs/data-structures/base/iterable-base.js.map +1 -1
- package/dist/cjs/data-structures/graph/abstract-graph.d.ts +1 -0
- package/dist/cjs/data-structures/graph/abstract-graph.js +3 -0
- package/dist/cjs/data-structures/graph/abstract-graph.js.map +1 -1
- package/dist/cjs/data-structures/heap/heap.js.map +1 -1
- package/dist/cjs/data-structures/linked-list/doubly-linked-list.d.ts +14 -76
- package/dist/cjs/data-structures/linked-list/doubly-linked-list.js +16 -86
- package/dist/cjs/data-structures/linked-list/doubly-linked-list.js.map +1 -1
- package/dist/cjs/data-structures/linked-list/singly-linked-list.d.ts +27 -69
- package/dist/cjs/data-structures/linked-list/singly-linked-list.js +35 -79
- package/dist/cjs/data-structures/linked-list/singly-linked-list.js.map +1 -1
- package/dist/cjs/data-structures/queue/deque.d.ts +0 -53
- package/dist/cjs/data-structures/queue/deque.js +0 -61
- package/dist/cjs/data-structures/queue/deque.js.map +1 -1
- package/dist/cjs/data-structures/queue/queue.d.ts +0 -70
- package/dist/cjs/data-structures/queue/queue.js +0 -87
- package/dist/cjs/data-structures/queue/queue.js.map +1 -1
- package/dist/mjs/data-structures/base/iterable-base.d.ts +10 -8
- package/dist/mjs/data-structures/base/iterable-base.js +8 -12
- package/dist/mjs/data-structures/graph/abstract-graph.d.ts +1 -0
- package/dist/mjs/data-structures/graph/abstract-graph.js +3 -0
- package/dist/mjs/data-structures/linked-list/doubly-linked-list.d.ts +14 -76
- package/dist/mjs/data-structures/linked-list/doubly-linked-list.js +16 -86
- package/dist/mjs/data-structures/linked-list/singly-linked-list.d.ts +27 -69
- package/dist/mjs/data-structures/linked-list/singly-linked-list.js +33 -79
- package/dist/mjs/data-structures/queue/deque.d.ts +0 -53
- package/dist/mjs/data-structures/queue/deque.js +0 -61
- package/dist/mjs/data-structures/queue/queue.d.ts +0 -70
- package/dist/mjs/data-structures/queue/queue.js +0 -86
- package/dist/umd/data-structure-typed.js +62 -325
- package/dist/umd/data-structure-typed.min.js +2 -2
- package/dist/umd/data-structure-typed.min.js.map +1 -1
- package/package.json +1 -1
- package/src/data-structures/base/iterable-base.ts +14 -10
- package/src/data-structures/graph/abstract-graph.ts +4 -0
- package/src/data-structures/heap/heap.ts +1 -1
- package/src/data-structures/linked-list/doubly-linked-list.ts +16 -94
- package/src/data-structures/linked-list/singly-linked-list.ts +35 -87
- package/src/data-structures/queue/deque.ts +0 -67
- package/src/data-structures/queue/queue.ts +0 -98
- package/test/performance/data-structures/binary-tree/avl-tree.test.ts +3 -3
- package/test/performance/data-structures/binary-tree/binary-tree-overall.test.ts +3 -3
- package/test/performance/data-structures/hash/hash-map.test.ts +6 -6
- package/test/performance/data-structures/heap/heap.test.ts +14 -14
- package/test/performance/data-structures/priority-queue/priority-queue.test.ts +11 -6
- package/test/performance/data-structures/queue/deque.test.ts +8 -8
- package/test/performance/data-structures/queue/queue.test.ts +5 -12
- package/test/performance/reportor.ts +43 -1
- package/test/unit/data-structures/linked-list/doubly-linked-list.test.ts +6 -6
- package/test/unit/data-structures/linked-list/singly-linked-list.test.ts +10 -10
- package/test/unit/data-structures/linked-list/skip-list.test.ts +4 -4
- package/test/unit/data-structures/queue/deque.test.ts +26 -26
- package/test/unit/data-structures/queue/queue.test.ts +20 -20
package/benchmark/report.json
CHANGED
|
@@ -1,391 +1,391 @@
|
|
|
1
1
|
{
|
|
2
|
-
"
|
|
2
|
+
"heap": {
|
|
3
3
|
"benchmarks": [
|
|
4
4
|
{
|
|
5
|
-
"test name": "
|
|
6
|
-
"time taken (ms)": "
|
|
7
|
-
"executions per sec": "
|
|
8
|
-
"sample deviation": "
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
"test name": "10,000 add & delete randomly",
|
|
12
|
-
"time taken (ms)": "181.22",
|
|
13
|
-
"executions per sec": "5.52",
|
|
14
|
-
"sample deviation": "0.00"
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"test name": "10,000 addMany",
|
|
18
|
-
"time taken (ms)": "134.12",
|
|
19
|
-
"executions per sec": "7.46",
|
|
20
|
-
"sample deviation": "0.01"
|
|
5
|
+
"test name": "100,000 add",
|
|
6
|
+
"time taken (ms)": "6.51",
|
|
7
|
+
"executions per sec": "153.59",
|
|
8
|
+
"sample deviation": "4.60e-4"
|
|
21
9
|
},
|
|
22
10
|
{
|
|
23
|
-
"test name": "
|
|
24
|
-
"time taken (ms)": "
|
|
25
|
-
"executions per sec": "
|
|
26
|
-
"sample deviation": "
|
|
11
|
+
"test name": "100,000 add & poll",
|
|
12
|
+
"time taken (ms)": "31.59",
|
|
13
|
+
"executions per sec": "31.65",
|
|
14
|
+
"sample deviation": "8.52e-4"
|
|
27
15
|
}
|
|
28
16
|
],
|
|
29
|
-
"testName": "
|
|
17
|
+
"testName": "heap"
|
|
30
18
|
},
|
|
31
|
-
"
|
|
19
|
+
"rb-tree": {
|
|
32
20
|
"benchmarks": [
|
|
33
21
|
{
|
|
34
|
-
"test name": "
|
|
35
|
-
"time taken (ms)": "
|
|
36
|
-
"executions per sec": "
|
|
22
|
+
"test name": "100,000 add",
|
|
23
|
+
"time taken (ms)": "85.08",
|
|
24
|
+
"executions per sec": "11.75",
|
|
37
25
|
"sample deviation": "0.00"
|
|
38
26
|
},
|
|
39
27
|
{
|
|
40
|
-
"test name": "
|
|
41
|
-
"time taken (ms)": "
|
|
42
|
-
"executions per sec": "
|
|
43
|
-
"sample deviation": "2.62e-4"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"test name": "10,000 RBTree get",
|
|
47
|
-
"time taken (ms)": "19.86",
|
|
48
|
-
"executions per sec": "50.36",
|
|
49
|
-
"sample deviation": "2.44e-4"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"test name": "10,000 AVLTree add",
|
|
53
|
-
"time taken (ms)": "134.38",
|
|
54
|
-
"executions per sec": "7.44",
|
|
28
|
+
"test name": "100,000 add & delete randomly",
|
|
29
|
+
"time taken (ms)": "217.11",
|
|
30
|
+
"executions per sec": "4.61",
|
|
55
31
|
"sample deviation": "0.02"
|
|
56
32
|
},
|
|
57
33
|
{
|
|
58
|
-
"test name": "
|
|
59
|
-
"time taken (ms)": "
|
|
60
|
-
"executions per sec": "
|
|
61
|
-
"sample deviation": "0.
|
|
34
|
+
"test name": "100,000 getNode",
|
|
35
|
+
"time taken (ms)": "178.00",
|
|
36
|
+
"executions per sec": "5.62",
|
|
37
|
+
"sample deviation": "0.00"
|
|
62
38
|
},
|
|
63
39
|
{
|
|
64
|
-
"test name": "
|
|
65
|
-
"time taken (ms)": "
|
|
66
|
-
"executions per sec": "
|
|
67
|
-
"sample deviation": "
|
|
40
|
+
"test name": "100,000 add & iterator",
|
|
41
|
+
"time taken (ms)": "116.31",
|
|
42
|
+
"executions per sec": "8.60",
|
|
43
|
+
"sample deviation": "0.00"
|
|
68
44
|
}
|
|
69
45
|
],
|
|
70
|
-
"testName": "
|
|
46
|
+
"testName": "rb-tree"
|
|
71
47
|
},
|
|
72
|
-
"
|
|
48
|
+
"queue": {
|
|
73
49
|
"benchmarks": [
|
|
74
50
|
{
|
|
75
|
-
"test name": "
|
|
76
|
-
"time taken (ms)": "
|
|
77
|
-
"executions per sec": "
|
|
78
|
-
"sample deviation": "0.
|
|
79
|
-
},
|
|
80
|
-
{
|
|
81
|
-
"test name": "100,000 add & delete randomly",
|
|
82
|
-
"time taken (ms)": "221.02",
|
|
83
|
-
"executions per sec": "4.52",
|
|
84
|
-
"sample deviation": "0.03"
|
|
51
|
+
"test name": "1,000,000 push",
|
|
52
|
+
"time taken (ms)": "45.98",
|
|
53
|
+
"executions per sec": "21.75",
|
|
54
|
+
"sample deviation": "0.01"
|
|
85
55
|
},
|
|
86
56
|
{
|
|
87
|
-
"test name": "100,000
|
|
88
|
-
"time taken (ms)": "
|
|
89
|
-
"executions per sec": "
|
|
90
|
-
"sample deviation": "
|
|
57
|
+
"test name": "100,000 push & shift",
|
|
58
|
+
"time taken (ms)": "4.91",
|
|
59
|
+
"executions per sec": "203.49",
|
|
60
|
+
"sample deviation": "7.39e-4"
|
|
91
61
|
},
|
|
92
62
|
{
|
|
93
|
-
"test name": "100,000
|
|
94
|
-
"time taken (ms)": "
|
|
95
|
-
"executions per sec": "
|
|
96
|
-
"sample deviation": "0.
|
|
63
|
+
"test name": "Native JS Array 100,000 push & shift",
|
|
64
|
+
"time taken (ms)": "2321.55",
|
|
65
|
+
"executions per sec": "0.43",
|
|
66
|
+
"sample deviation": "0.20"
|
|
97
67
|
}
|
|
98
68
|
],
|
|
99
|
-
"testName": "
|
|
69
|
+
"testName": "queue"
|
|
100
70
|
},
|
|
101
|
-
"
|
|
71
|
+
"deque": {
|
|
102
72
|
"benchmarks": [
|
|
103
73
|
{
|
|
104
|
-
"test name": "1,000
|
|
105
|
-
"time taken (ms)": "
|
|
106
|
-
"executions per sec": "
|
|
107
|
-
"sample deviation": "
|
|
74
|
+
"test name": "1,000,000 push",
|
|
75
|
+
"time taken (ms)": "24.85",
|
|
76
|
+
"executions per sec": "40.24",
|
|
77
|
+
"sample deviation": "0.00"
|
|
108
78
|
},
|
|
109
79
|
{
|
|
110
|
-
"test name": "1,000
|
|
111
|
-
"time taken (ms)": "
|
|
112
|
-
"executions per sec": "
|
|
80
|
+
"test name": "1,000,000 push & pop",
|
|
81
|
+
"time taken (ms)": "31.50",
|
|
82
|
+
"executions per sec": "31.75",
|
|
113
83
|
"sample deviation": "0.00"
|
|
114
84
|
},
|
|
115
85
|
{
|
|
116
|
-
"test name": "1,000
|
|
117
|
-
"time taken (ms)": "
|
|
118
|
-
"executions per sec": "
|
|
119
|
-
"sample deviation": "
|
|
86
|
+
"test name": "1,000,000 push & shift",
|
|
87
|
+
"time taken (ms)": "30.93",
|
|
88
|
+
"executions per sec": "32.33",
|
|
89
|
+
"sample deviation": "0.00"
|
|
120
90
|
},
|
|
121
91
|
{
|
|
122
|
-
"test name": "
|
|
123
|
-
"time taken (ms)": "
|
|
124
|
-
"executions per sec": "
|
|
125
|
-
"sample deviation": "
|
|
92
|
+
"test name": "100,000 push & shift",
|
|
93
|
+
"time taken (ms)": "3.28",
|
|
94
|
+
"executions per sec": "304.69",
|
|
95
|
+
"sample deviation": "2.35e-4"
|
|
126
96
|
},
|
|
127
97
|
{
|
|
128
|
-
"test name": "
|
|
129
|
-
"time taken (ms)": "
|
|
130
|
-
"executions per sec": "
|
|
131
|
-
"sample deviation": "0.
|
|
98
|
+
"test name": "Native JS Array 100,000 push & shift",
|
|
99
|
+
"time taken (ms)": "2040.48",
|
|
100
|
+
"executions per sec": "0.49",
|
|
101
|
+
"sample deviation": "0.08"
|
|
132
102
|
},
|
|
133
103
|
{
|
|
134
|
-
"test name": "
|
|
135
|
-
"time taken (ms)": "
|
|
136
|
-
"executions per sec": "
|
|
137
|
-
"sample deviation": "
|
|
104
|
+
"test name": "100,000 unshift & shift",
|
|
105
|
+
"time taken (ms)": "2.97",
|
|
106
|
+
"executions per sec": "336.20",
|
|
107
|
+
"sample deviation": "5.34e-4"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"test name": "Native JS Array 100,000 unshift & shift",
|
|
111
|
+
"time taken (ms)": "4113.19",
|
|
112
|
+
"executions per sec": "0.24",
|
|
113
|
+
"sample deviation": "0.25"
|
|
138
114
|
}
|
|
139
115
|
],
|
|
140
|
-
"testName": "
|
|
116
|
+
"testName": "deque"
|
|
141
117
|
},
|
|
142
118
|
"hash-map": {
|
|
143
119
|
"benchmarks": [
|
|
144
120
|
{
|
|
145
121
|
"test name": "1,000,000 set",
|
|
146
|
-
"time taken (ms)": "
|
|
147
|
-
"executions per sec": "
|
|
148
|
-
"sample deviation": "0.
|
|
122
|
+
"time taken (ms)": "118.59",
|
|
123
|
+
"executions per sec": "8.43",
|
|
124
|
+
"sample deviation": "0.03"
|
|
149
125
|
},
|
|
150
126
|
{
|
|
151
|
-
"test name": "Native Map 1,000,000 set",
|
|
152
|
-
"time taken (ms)": "
|
|
153
|
-
"executions per sec": "4.
|
|
154
|
-
"sample deviation": "0.
|
|
127
|
+
"test name": "Native JS Map 1,000,000 set",
|
|
128
|
+
"time taken (ms)": "208.83",
|
|
129
|
+
"executions per sec": "4.79",
|
|
130
|
+
"sample deviation": "0.02"
|
|
155
131
|
},
|
|
156
132
|
{
|
|
157
|
-
"test name": "Native Set 1,000,000 add",
|
|
158
|
-
"time taken (ms)": "
|
|
159
|
-
"executions per sec": "5.
|
|
133
|
+
"test name": "Native JS Set 1,000,000 add",
|
|
134
|
+
"time taken (ms)": "168.45",
|
|
135
|
+
"executions per sec": "5.94",
|
|
160
136
|
"sample deviation": "0.01"
|
|
161
137
|
},
|
|
162
138
|
{
|
|
163
139
|
"test name": "1,000,000 set & get",
|
|
164
|
-
"time taken (ms)": "
|
|
165
|
-
"executions per sec": "8.
|
|
166
|
-
"sample deviation": "0.
|
|
140
|
+
"time taken (ms)": "120.86",
|
|
141
|
+
"executions per sec": "8.27",
|
|
142
|
+
"sample deviation": "0.02"
|
|
167
143
|
},
|
|
168
144
|
{
|
|
169
|
-
"test name": "Native Map 1,000,000 set & get",
|
|
170
|
-
"time taken (ms)": "
|
|
171
|
-
"executions per sec": "3.
|
|
172
|
-
"sample deviation": "0.
|
|
145
|
+
"test name": "Native JS Map 1,000,000 set & get",
|
|
146
|
+
"time taken (ms)": "270.83",
|
|
147
|
+
"executions per sec": "3.69",
|
|
148
|
+
"sample deviation": "0.02"
|
|
173
149
|
},
|
|
174
150
|
{
|
|
175
|
-
"test name": "Native Set 1,000,000 add & has",
|
|
176
|
-
"time taken (ms)": "
|
|
177
|
-
"executions per sec": "5.
|
|
151
|
+
"test name": "Native JS Set 1,000,000 add & has",
|
|
152
|
+
"time taken (ms)": "168.79",
|
|
153
|
+
"executions per sec": "5.92",
|
|
178
154
|
"sample deviation": "0.01"
|
|
179
155
|
},
|
|
180
156
|
{
|
|
181
157
|
"test name": "1,000,000 ObjKey set & get",
|
|
182
|
-
"time taken (ms)": "
|
|
183
|
-
"executions per sec": "2.
|
|
184
|
-
"sample deviation": "0.
|
|
158
|
+
"time taken (ms)": "335.67",
|
|
159
|
+
"executions per sec": "2.98",
|
|
160
|
+
"sample deviation": "0.05"
|
|
185
161
|
},
|
|
186
162
|
{
|
|
187
|
-
"test name": "Native Map 1,000,000 ObjKey set & get",
|
|
188
|
-
"time taken (ms)": "
|
|
189
|
-
"executions per sec": "3.
|
|
190
|
-
"sample deviation": "0.
|
|
163
|
+
"test name": "Native JS Map 1,000,000 ObjKey set & get",
|
|
164
|
+
"time taken (ms)": "302.02",
|
|
165
|
+
"executions per sec": "3.31",
|
|
166
|
+
"sample deviation": "0.04"
|
|
191
167
|
},
|
|
192
168
|
{
|
|
193
|
-
"test name": "Native Set 1,000,000 ObjKey add & has",
|
|
194
|
-
"time taken (ms)": "
|
|
195
|
-
"executions per sec": "3.
|
|
196
|
-
"sample deviation": "0.
|
|
169
|
+
"test name": "Native JS Set 1,000,000 ObjKey add & has",
|
|
170
|
+
"time taken (ms)": "270.81",
|
|
171
|
+
"executions per sec": "3.69",
|
|
172
|
+
"sample deviation": "0.04"
|
|
197
173
|
}
|
|
198
174
|
],
|
|
199
175
|
"testName": "hash-map"
|
|
200
176
|
},
|
|
201
|
-
"
|
|
177
|
+
"trie": {
|
|
202
178
|
"benchmarks": [
|
|
203
179
|
{
|
|
204
|
-
"test name": "100,000
|
|
205
|
-
"time taken (ms)": "
|
|
206
|
-
"executions per sec": "
|
|
207
|
-
"sample deviation": "
|
|
208
|
-
},
|
|
209
|
-
{
|
|
210
|
-
"test name": "100,000 add & dfs",
|
|
211
|
-
"time taken (ms)": "33.14",
|
|
212
|
-
"executions per sec": "30.17",
|
|
213
|
-
"sample deviation": "0.00"
|
|
180
|
+
"test name": "100,000 push",
|
|
181
|
+
"time taken (ms)": "44.86",
|
|
182
|
+
"executions per sec": "22.29",
|
|
183
|
+
"sample deviation": "9.69e-4"
|
|
214
184
|
},
|
|
215
185
|
{
|
|
216
|
-
"test name": "
|
|
217
|
-
"time taken (ms)": "
|
|
218
|
-
"executions per sec": "
|
|
219
|
-
"sample deviation": "0.
|
|
186
|
+
"test name": "100,000 getWords",
|
|
187
|
+
"time taken (ms)": "85.63",
|
|
188
|
+
"executions per sec": "11.68",
|
|
189
|
+
"sample deviation": "0.01"
|
|
220
190
|
}
|
|
221
191
|
],
|
|
222
|
-
"testName": "
|
|
192
|
+
"testName": "trie"
|
|
223
193
|
},
|
|
224
|
-
"
|
|
194
|
+
"avl-tree": {
|
|
225
195
|
"benchmarks": [
|
|
226
196
|
{
|
|
227
|
-
"test name": "
|
|
228
|
-
"time taken (ms)": "
|
|
229
|
-
"executions per sec": "
|
|
230
|
-
"sample deviation": "0.
|
|
197
|
+
"test name": "10,000 add randomly",
|
|
198
|
+
"time taken (ms)": "128.11",
|
|
199
|
+
"executions per sec": "7.81",
|
|
200
|
+
"sample deviation": "0.00"
|
|
231
201
|
},
|
|
232
202
|
{
|
|
233
|
-
"test name": "
|
|
234
|
-
"time taken (ms)": "
|
|
235
|
-
"executions per sec": "
|
|
236
|
-
"sample deviation": "
|
|
203
|
+
"test name": "10,000 get",
|
|
204
|
+
"time taken (ms)": "52.87",
|
|
205
|
+
"executions per sec": "18.91",
|
|
206
|
+
"sample deviation": "6.02e-4"
|
|
237
207
|
},
|
|
238
208
|
{
|
|
239
|
-
"test name": "
|
|
240
|
-
"time taken (ms)": "
|
|
241
|
-
"executions per sec": "5.
|
|
242
|
-
"sample deviation": "0.
|
|
209
|
+
"test name": "10,000 add & delete randomly",
|
|
210
|
+
"time taken (ms)": "189.76",
|
|
211
|
+
"executions per sec": "5.27",
|
|
212
|
+
"sample deviation": "0.00"
|
|
243
213
|
},
|
|
244
214
|
{
|
|
245
|
-
"test name": "
|
|
246
|
-
"time taken (ms)": "
|
|
247
|
-
"executions per sec": "
|
|
248
|
-
"sample deviation": "
|
|
215
|
+
"test name": "10,000 addMany",
|
|
216
|
+
"time taken (ms)": "136.54",
|
|
217
|
+
"executions per sec": "7.32",
|
|
218
|
+
"sample deviation": "9.74e-4"
|
|
249
219
|
}
|
|
250
220
|
],
|
|
251
|
-
"testName": "
|
|
221
|
+
"testName": "avl-tree"
|
|
252
222
|
},
|
|
253
|
-
"
|
|
223
|
+
"binary-tree-overall": {
|
|
254
224
|
"benchmarks": [
|
|
255
225
|
{
|
|
256
|
-
"test name": "
|
|
257
|
-
"time taken (ms)": "
|
|
258
|
-
"executions per sec": "
|
|
259
|
-
"sample deviation": "
|
|
226
|
+
"test name": "10,000 RBTree add",
|
|
227
|
+
"time taken (ms)": "7.00",
|
|
228
|
+
"executions per sec": "142.81",
|
|
229
|
+
"sample deviation": "9.38e-5"
|
|
260
230
|
},
|
|
261
231
|
{
|
|
262
|
-
"test name": "10,000
|
|
263
|
-
"time taken (ms)": "
|
|
264
|
-
"executions per sec": "
|
|
265
|
-
"sample deviation": "
|
|
232
|
+
"test name": "10,000 RBTree add & delete randomly",
|
|
233
|
+
"time taken (ms)": "16.85",
|
|
234
|
+
"executions per sec": "59.34",
|
|
235
|
+
"sample deviation": "1.65e-4"
|
|
266
236
|
},
|
|
267
237
|
{
|
|
268
|
-
"test name": "10,000
|
|
269
|
-
"time taken (ms)": "
|
|
270
|
-
"executions per sec": "
|
|
238
|
+
"test name": "10,000 RBTree get",
|
|
239
|
+
"time taken (ms)": "18.20",
|
|
240
|
+
"executions per sec": "54.93",
|
|
241
|
+
"sample deviation": "1.45e-4"
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"test name": "10,000 AVLTree add",
|
|
245
|
+
"time taken (ms)": "127.56",
|
|
246
|
+
"executions per sec": "7.84",
|
|
271
247
|
"sample deviation": "0.00"
|
|
272
|
-
}
|
|
273
|
-
],
|
|
274
|
-
"testName": "singly-linked-list"
|
|
275
|
-
},
|
|
276
|
-
"priority-queue": {
|
|
277
|
-
"benchmarks": [
|
|
248
|
+
},
|
|
278
249
|
{
|
|
279
|
-
"test name": "
|
|
280
|
-
"time taken (ms)": "
|
|
281
|
-
"executions per sec": "
|
|
250
|
+
"test name": "10,000 AVLTree get",
|
|
251
|
+
"time taken (ms)": "53.38",
|
|
252
|
+
"executions per sec": "18.73",
|
|
253
|
+
"sample deviation": "7.89e-4"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"test name": "10,000 AVLTree add & delete randomly",
|
|
257
|
+
"time taken (ms)": "190.11",
|
|
258
|
+
"executions per sec": "5.26",
|
|
282
259
|
"sample deviation": "0.00"
|
|
283
260
|
}
|
|
284
261
|
],
|
|
285
|
-
"testName": "
|
|
262
|
+
"testName": "binary-tree-overall"
|
|
286
263
|
},
|
|
287
|
-
"
|
|
264
|
+
"directed-graph": {
|
|
288
265
|
"benchmarks": [
|
|
289
266
|
{
|
|
290
|
-
"test name": "1,000
|
|
291
|
-
"time taken (ms)": "
|
|
292
|
-
"executions per sec": "
|
|
293
|
-
"sample deviation": "2.
|
|
267
|
+
"test name": "1,000 addVertex",
|
|
268
|
+
"time taken (ms)": "0.10",
|
|
269
|
+
"executions per sec": "9828.43",
|
|
270
|
+
"sample deviation": "2.34e-6"
|
|
294
271
|
},
|
|
295
272
|
{
|
|
296
|
-
"test name": "1,000
|
|
297
|
-
"time taken (ms)": "
|
|
298
|
-
"executions per sec": "
|
|
299
|
-
"sample deviation": "
|
|
273
|
+
"test name": "1,000 addEdge",
|
|
274
|
+
"time taken (ms)": "6.14",
|
|
275
|
+
"executions per sec": "162.81",
|
|
276
|
+
"sample deviation": "1.71e-4"
|
|
300
277
|
},
|
|
301
278
|
{
|
|
302
|
-
"test name": "
|
|
303
|
-
"time taken (ms)": "
|
|
304
|
-
"executions per sec": "
|
|
305
|
-
"sample deviation": "
|
|
279
|
+
"test name": "1,000 getVertex",
|
|
280
|
+
"time taken (ms)": "0.05",
|
|
281
|
+
"executions per sec": "2.17e+4",
|
|
282
|
+
"sample deviation": "4.30e-7"
|
|
306
283
|
},
|
|
307
284
|
{
|
|
308
|
-
"test name": "
|
|
309
|
-
"time taken (ms)": "
|
|
310
|
-
"executions per sec": "
|
|
311
|
-
"sample deviation": "0.
|
|
285
|
+
"test name": "1,000 getEdge",
|
|
286
|
+
"time taken (ms)": "23.02",
|
|
287
|
+
"executions per sec": "43.44",
|
|
288
|
+
"sample deviation": "0.00"
|
|
312
289
|
},
|
|
313
290
|
{
|
|
314
|
-
"test name": "
|
|
315
|
-
"time taken (ms)": "
|
|
316
|
-
"executions per sec": "
|
|
317
|
-
"sample deviation": "
|
|
291
|
+
"test name": "tarjan",
|
|
292
|
+
"time taken (ms)": "202.41",
|
|
293
|
+
"executions per sec": "4.94",
|
|
294
|
+
"sample deviation": "0.01"
|
|
318
295
|
},
|
|
319
296
|
{
|
|
320
|
-
"test name": "
|
|
321
|
-
"time taken (ms)": "
|
|
322
|
-
"executions per sec": "
|
|
323
|
-
"sample deviation": "0.
|
|
297
|
+
"test name": "topologicalSort",
|
|
298
|
+
"time taken (ms)": "180.32",
|
|
299
|
+
"executions per sec": "5.55",
|
|
300
|
+
"sample deviation": "0.00"
|
|
324
301
|
}
|
|
325
302
|
],
|
|
326
|
-
"testName": "
|
|
303
|
+
"testName": "directed-graph"
|
|
327
304
|
},
|
|
328
|
-
"
|
|
305
|
+
"doubly-linked-list": {
|
|
329
306
|
"benchmarks": [
|
|
330
307
|
{
|
|
331
308
|
"test name": "1,000,000 push",
|
|
332
|
-
"time taken (ms)": "
|
|
333
|
-
"executions per sec": "
|
|
334
|
-
"sample deviation": "0.
|
|
309
|
+
"time taken (ms)": "209.36",
|
|
310
|
+
"executions per sec": "4.78",
|
|
311
|
+
"sample deviation": "0.04"
|
|
335
312
|
},
|
|
336
313
|
{
|
|
337
|
-
"test name": "
|
|
338
|
-
"time taken (ms)": "
|
|
339
|
-
"executions per sec": "
|
|
340
|
-
"sample deviation": "
|
|
314
|
+
"test name": "1,000,000 unshift",
|
|
315
|
+
"time taken (ms)": "217.02",
|
|
316
|
+
"executions per sec": "4.61",
|
|
317
|
+
"sample deviation": "0.08"
|
|
341
318
|
},
|
|
342
319
|
{
|
|
343
|
-
"test name": "
|
|
344
|
-
"time taken (ms)": "
|
|
345
|
-
"executions per sec": "
|
|
346
|
-
"sample deviation": "0.
|
|
320
|
+
"test name": "1,000,000 unshift & shift",
|
|
321
|
+
"time taken (ms)": "174.28",
|
|
322
|
+
"executions per sec": "5.74",
|
|
323
|
+
"sample deviation": "0.05"
|
|
347
324
|
},
|
|
348
325
|
{
|
|
349
|
-
"test name": "
|
|
350
|
-
"time taken (ms)": "
|
|
351
|
-
"executions per sec": "
|
|
352
|
-
"sample deviation": "
|
|
326
|
+
"test name": "1,000,000 addBefore",
|
|
327
|
+
"time taken (ms)": "331.23",
|
|
328
|
+
"executions per sec": "3.02",
|
|
329
|
+
"sample deviation": "0.08"
|
|
353
330
|
}
|
|
354
331
|
],
|
|
355
|
-
"testName": "
|
|
332
|
+
"testName": "doubly-linked-list"
|
|
356
333
|
},
|
|
357
|
-
"
|
|
334
|
+
"singly-linked-list": {
|
|
358
335
|
"benchmarks": [
|
|
359
336
|
{
|
|
360
|
-
"test name": "1,000,000 push",
|
|
361
|
-
"time taken (ms)": "
|
|
362
|
-
"executions per sec": "
|
|
337
|
+
"test name": "1,000,000 push & shift",
|
|
338
|
+
"time taken (ms)": "217.34",
|
|
339
|
+
"executions per sec": "4.60",
|
|
340
|
+
"sample deviation": "0.07"
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"test name": "10,000 push & pop",
|
|
344
|
+
"time taken (ms)": "216.54",
|
|
345
|
+
"executions per sec": "4.62",
|
|
363
346
|
"sample deviation": "0.01"
|
|
364
347
|
},
|
|
365
348
|
{
|
|
366
|
-
"test name": "
|
|
367
|
-
"time taken (ms)": "
|
|
368
|
-
"executions per sec": "
|
|
349
|
+
"test name": "10,000 addBefore",
|
|
350
|
+
"time taken (ms)": "247.69",
|
|
351
|
+
"executions per sec": "4.04",
|
|
352
|
+
"sample deviation": "0.01"
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
"testName": "singly-linked-list"
|
|
356
|
+
},
|
|
357
|
+
"priority-queue": {
|
|
358
|
+
"benchmarks": [
|
|
359
|
+
{
|
|
360
|
+
"test name": "100,000 add",
|
|
361
|
+
"time taken (ms)": "27.82",
|
|
362
|
+
"executions per sec": "35.94",
|
|
363
|
+
"sample deviation": "0.00"
|
|
364
|
+
},
|
|
365
|
+
{
|
|
366
|
+
"test name": "100,000 add & poll",
|
|
367
|
+
"time taken (ms)": "78.76",
|
|
368
|
+
"executions per sec": "12.70",
|
|
369
369
|
"sample deviation": "0.02"
|
|
370
370
|
}
|
|
371
371
|
],
|
|
372
|
-
"testName": "
|
|
372
|
+
"testName": "priority-queue"
|
|
373
373
|
},
|
|
374
|
-
"
|
|
374
|
+
"stack": {
|
|
375
375
|
"benchmarks": [
|
|
376
376
|
{
|
|
377
|
-
"test name": "
|
|
378
|
-
"time taken (ms)": "
|
|
379
|
-
"executions per sec": "
|
|
380
|
-
"sample deviation": "
|
|
377
|
+
"test name": "1,000,000 push",
|
|
378
|
+
"time taken (ms)": "40.75",
|
|
379
|
+
"executions per sec": "24.54",
|
|
380
|
+
"sample deviation": "0.01"
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
|
-
"test name": "
|
|
384
|
-
"time taken (ms)": "
|
|
385
|
-
"executions per sec": "
|
|
383
|
+
"test name": "1,000,000 push & pop",
|
|
384
|
+
"time taken (ms)": "48.07",
|
|
385
|
+
"executions per sec": "20.80",
|
|
386
386
|
"sample deviation": "0.01"
|
|
387
387
|
}
|
|
388
388
|
],
|
|
389
|
-
"testName": "
|
|
389
|
+
"testName": "stack"
|
|
390
390
|
}
|
|
391
391
|
}
|