data-structure-typed 2.2.2 → 2.2.3
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 +311 -1687
- package/README_CN.md +509 -0
- package/SECURITY.md +962 -11
- package/SECURITY.zh-CN.md +966 -0
- package/SPECIFICATION.md +689 -30
- package/SPECIFICATION.zh-CN.md +715 -0
- package/SPONSOR.zh-CN.md +62 -0
- package/SPONSOR_POLISHED.md +62 -0
- package/benchmark/report.html +1 -1
- package/benchmark/report.json +215 -172
- package/dist/cjs/index.cjs +163 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs-legacy/index.cjs +164 -0
- package/dist/cjs-legacy/index.cjs.map +1 -1
- package/dist/esm/index.mjs +163 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm-legacy/index.mjs +164 -0
- package/dist/esm-legacy/index.mjs.map +1 -1
- package/dist/types/data-structures/binary-tree/avl-tree.d.ts +96 -2
- package/dist/types/data-structures/binary-tree/binary-tree.d.ts +103 -7
- package/dist/types/data-structures/binary-tree/bst.d.ts +156 -13
- package/dist/types/data-structures/binary-tree/red-black-tree.d.ts +84 -35
- package/dist/types/data-structures/binary-tree/tree-multi-map.d.ts +2 -2
- package/dist/types/data-structures/graph/directed-graph.d.ts +126 -1
- package/dist/types/data-structures/graph/undirected-graph.d.ts +160 -1
- package/dist/types/data-structures/hash/hash-map.d.ts +110 -27
- package/dist/types/data-structures/heap/heap.d.ts +107 -58
- package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +72 -404
- package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +121 -5
- package/dist/types/data-structures/queue/deque.d.ts +95 -67
- package/dist/types/data-structures/queue/queue.d.ts +90 -34
- package/dist/types/data-structures/stack/stack.d.ts +58 -40
- package/dist/types/data-structures/trie/trie.d.ts +109 -47
- package/dist/types/interfaces/binary-tree.d.ts +1 -0
- package/dist/umd/data-structure-typed.js +164 -0
- package/dist/umd/data-structure-typed.js.map +1 -1
- package/dist/umd/data-structure-typed.min.js +3 -3
- package/dist/umd/data-structure-typed.min.js.map +1 -1
- package/package.json +3 -2
- package/src/data-structures/binary-tree/avl-tree.ts +96 -2
- package/src/data-structures/binary-tree/binary-tree.ts +117 -7
- package/src/data-structures/binary-tree/bst.ts +322 -13
- package/src/data-structures/binary-tree/red-black-tree.ts +84 -35
- package/src/data-structures/binary-tree/tree-multi-map.ts +2 -2
- package/src/data-structures/graph/directed-graph.ts +126 -1
- package/src/data-structures/graph/undirected-graph.ts +160 -1
- package/src/data-structures/hash/hash-map.ts +110 -27
- package/src/data-structures/heap/heap.ts +107 -58
- package/src/data-structures/linked-list/doubly-linked-list.ts +72 -404
- package/src/data-structures/linked-list/singly-linked-list.ts +121 -5
- package/src/data-structures/queue/deque.ts +95 -67
- package/src/data-structures/queue/queue.ts +90 -34
- package/src/data-structures/stack/stack.ts +58 -40
- package/src/data-structures/trie/trie.ts +109 -47
- package/src/interfaces/binary-tree.ts +2 -0
- package/test/performance/benchmark-runner.ts +14 -11
- package/test/performance/data-structures/binary-tree/avl-tree.test.ts +8 -8
- package/test/performance/data-structures/binary-tree/binary-tree-overall.test.ts +8 -8
- package/test/performance/data-structures/binary-tree/binary-tree.test.ts +6 -6
- package/test/performance/data-structures/binary-tree/bst.test.ts +5 -5
- package/test/performance/data-structures/binary-tree/red-black-tree.test.ts +10 -10
- package/test/performance/reportor.ts +2 -1
- package/test/performance/single-suite-runner.ts +7 -4
- package/test/unit/data-structures/binary-tree/avl-tree.test.ts +117 -0
- package/test/unit/data-structures/binary-tree/binary-tree.test.ts +166 -0
- package/test/unit/data-structures/binary-tree/bst.test.ts +766 -8
- package/test/unit/data-structures/binary-tree/red-black-tree.test.ts +89 -37
- package/test/unit/data-structures/graph/directed-graph.test.ts +133 -0
- package/test/unit/data-structures/graph/undirected-graph.test.ts +167 -0
- package/test/unit/data-structures/hash/hash-map.test.ts +149 -3
- package/test/unit/data-structures/heap/heap.test.ts +182 -47
- package/test/unit/data-structures/linked-list/doubly-linked-list.test.ts +118 -14
- package/test/unit/data-structures/linked-list/singly-linked-list.test.ts +121 -0
- package/test/unit/data-structures/queue/deque.test.ts +98 -67
- package/test/unit/data-structures/queue/queue.test.ts +85 -51
- package/test/unit/data-structures/stack/stack.test.ts +142 -33
- package/test/unit/data-structures/trie/trie.test.ts +135 -39
- package/tsup.leetcode.config.js +99 -0
- package/typedoc.json +2 -1
- package/POSTS_zh-CN.md +0 -54
- package/README_zh-CN.md +0 -1208
- package/SPECIFICATION_zh-CN.md +0 -81
package/benchmark/report.json
CHANGED
|
@@ -2,262 +2,301 @@
|
|
|
2
2
|
"red-black-tree": {
|
|
3
3
|
"benchmarks": [
|
|
4
4
|
{
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
"
|
|
8
|
-
"
|
|
5
|
+
"Test Case": "1,000,000 set",
|
|
6
|
+
"Latency Avg (ms)": "508.80",
|
|
7
|
+
"Min (ms)": "407.39",
|
|
8
|
+
"Max (ms)": "735.02",
|
|
9
|
+
"Stability": "±16.47%"
|
|
9
10
|
},
|
|
10
11
|
{
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
12
|
+
"Test Case": "1,000,000 get",
|
|
13
|
+
"Latency Avg (ms)": "3.60",
|
|
14
|
+
"Min (ms)": "2.59",
|
|
15
|
+
"Max (ms)": "10.73",
|
|
16
|
+
"Stability": "±12.76%"
|
|
15
17
|
},
|
|
16
18
|
{
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
19
|
+
"Test Case": "1,000,000 iterator",
|
|
20
|
+
"Latency Avg (ms)": "181.28",
|
|
21
|
+
"Min (ms)": "131.67",
|
|
22
|
+
"Max (ms)": "399.35",
|
|
23
|
+
"Stability": "±21.13%"
|
|
21
24
|
},
|
|
22
25
|
{
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"
|
|
26
|
+
"Test Case": "Competitor 1,000,000 set",
|
|
27
|
+
"Latency Avg (ms)": "657.36",
|
|
28
|
+
"Min (ms)": "646.08",
|
|
29
|
+
"Max (ms)": "668.05",
|
|
30
|
+
"Stability": "±0.94%"
|
|
27
31
|
},
|
|
28
32
|
{
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
+
"Test Case": "Competitor 1,000,000 get",
|
|
34
|
+
"Latency Avg (ms)": "707.92",
|
|
35
|
+
"Min (ms)": "661.39",
|
|
36
|
+
"Max (ms)": "774.77",
|
|
37
|
+
"Stability": "±4.43%"
|
|
33
38
|
}
|
|
34
39
|
]
|
|
35
40
|
},
|
|
36
41
|
"queue": {
|
|
37
42
|
"benchmarks": [
|
|
38
43
|
{
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
44
|
+
"Test Case": "1,000,000 push",
|
|
45
|
+
"Latency Avg (ms)": "26.83",
|
|
46
|
+
"Min (ms)": "21.26",
|
|
47
|
+
"Max (ms)": "67.52",
|
|
48
|
+
"Stability": "±7.94%"
|
|
43
49
|
},
|
|
44
50
|
{
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
51
|
+
"Test Case": "100,000 push & shift",
|
|
52
|
+
"Latency Avg (ms)": "2.71",
|
|
53
|
+
"Min (ms)": "2.40",
|
|
54
|
+
"Max (ms)": "3.56",
|
|
55
|
+
"Stability": "±1.99%"
|
|
49
56
|
},
|
|
50
57
|
{
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
58
|
+
"Test Case": "Native JS Array 100,000 push & shift",
|
|
59
|
+
"Latency Avg (ms)": "1214.60",
|
|
60
|
+
"Min (ms)": "1060.42",
|
|
61
|
+
"Max (ms)": "1423.06",
|
|
62
|
+
"Stability": "±10.02%"
|
|
55
63
|
}
|
|
56
64
|
]
|
|
57
65
|
},
|
|
58
66
|
"deque": {
|
|
59
67
|
"benchmarks": [
|
|
60
68
|
{
|
|
61
|
-
"
|
|
62
|
-
"
|
|
63
|
-
"
|
|
64
|
-
"
|
|
69
|
+
"Test Case": "1,000,000 push",
|
|
70
|
+
"Latency Avg (ms)": "8.85",
|
|
71
|
+
"Min (ms)": "8.48",
|
|
72
|
+
"Max (ms)": "9.64",
|
|
73
|
+
"Stability": "±0.50%"
|
|
65
74
|
},
|
|
66
75
|
{
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
76
|
+
"Test Case": "1,000,000 push & pop",
|
|
77
|
+
"Latency Avg (ms)": "13.52",
|
|
78
|
+
"Min (ms)": "13.02",
|
|
79
|
+
"Max (ms)": "14.76",
|
|
80
|
+
"Stability": "±0.54%"
|
|
71
81
|
},
|
|
72
82
|
{
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
83
|
+
"Test Case": "1,000,000 push & shift",
|
|
84
|
+
"Latency Avg (ms)": "14.08",
|
|
85
|
+
"Min (ms)": "13.62",
|
|
86
|
+
"Max (ms)": "15.34",
|
|
87
|
+
"Stability": "±0.51%"
|
|
77
88
|
},
|
|
78
89
|
{
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
90
|
+
"Test Case": "100,000 push & shift",
|
|
91
|
+
"Latency Avg (ms)": "1.35",
|
|
92
|
+
"Min (ms)": "1.31",
|
|
93
|
+
"Max (ms)": "1.44",
|
|
94
|
+
"Stability": "±0.33%"
|
|
83
95
|
},
|
|
84
96
|
{
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
97
|
+
"Test Case": "Native JS Array 100,000 push & shift",
|
|
98
|
+
"Latency Avg (ms)": "1429.15",
|
|
99
|
+
"Min (ms)": "944.17",
|
|
100
|
+
"Max (ms)": "1975.05",
|
|
101
|
+
"Stability": "±26.96%"
|
|
89
102
|
},
|
|
90
103
|
{
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
104
|
+
"Test Case": "100,000 unshift & shift",
|
|
105
|
+
"Latency Avg (ms)": "1.29",
|
|
106
|
+
"Min (ms)": "1.25",
|
|
107
|
+
"Max (ms)": "1.54",
|
|
108
|
+
"Stability": "±0.68%"
|
|
95
109
|
},
|
|
96
110
|
{
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
111
|
+
"Test Case": "Native JS Array 100,000 unshift & shift",
|
|
112
|
+
"Latency Avg (ms)": "2200.25",
|
|
113
|
+
"Min (ms)": "1844.73",
|
|
114
|
+
"Max (ms)": "2839.30",
|
|
115
|
+
"Stability": "±17.78%"
|
|
101
116
|
}
|
|
102
117
|
]
|
|
103
118
|
},
|
|
104
119
|
"heap": {
|
|
105
120
|
"benchmarks": [
|
|
106
121
|
{
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
122
|
+
"Test Case": "100,000 add",
|
|
123
|
+
"Latency Avg (ms)": "4.70",
|
|
124
|
+
"Min (ms)": "4.36",
|
|
125
|
+
"Max (ms)": "5.15",
|
|
126
|
+
"Stability": "±0.81%"
|
|
111
127
|
},
|
|
112
128
|
{
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
129
|
+
"Test Case": "100,000 add & poll",
|
|
130
|
+
"Latency Avg (ms)": "17.31",
|
|
131
|
+
"Min (ms)": "16.65",
|
|
132
|
+
"Max (ms)": "18.67",
|
|
133
|
+
"Stability": "±0.57%"
|
|
117
134
|
}
|
|
118
135
|
]
|
|
119
136
|
},
|
|
120
137
|
"avl-tree": {
|
|
121
138
|
"benchmarks": [
|
|
122
139
|
{
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
"
|
|
126
|
-
"
|
|
140
|
+
"Test Case": "100,000 set randomly",
|
|
141
|
+
"Latency Avg (ms)": "354.58",
|
|
142
|
+
"Min (ms)": "320.37",
|
|
143
|
+
"Max (ms)": "396.77",
|
|
144
|
+
"Stability": "±5.90%"
|
|
127
145
|
},
|
|
128
146
|
{
|
|
129
|
-
"
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
147
|
+
"Test Case": "100,000 set",
|
|
148
|
+
"Latency Avg (ms)": "310.29",
|
|
149
|
+
"Min (ms)": "294.79",
|
|
150
|
+
"Max (ms)": "362.25",
|
|
151
|
+
"Stability": "±4.57%"
|
|
133
152
|
},
|
|
134
153
|
{
|
|
135
|
-
"
|
|
136
|
-
"
|
|
137
|
-
"
|
|
138
|
-
"
|
|
154
|
+
"Test Case": "100,000 get",
|
|
155
|
+
"Latency Avg (ms)": "0.26",
|
|
156
|
+
"Min (ms)": "0.25",
|
|
157
|
+
"Max (ms)": "0.29",
|
|
158
|
+
"Stability": "±0.44%"
|
|
139
159
|
},
|
|
140
160
|
{
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
161
|
+
"Test Case": "100,000 getNode",
|
|
162
|
+
"Latency Avg (ms)": "199.21",
|
|
163
|
+
"Min (ms)": "170.37",
|
|
164
|
+
"Max (ms)": "228.69",
|
|
165
|
+
"Stability": "±4.40%"
|
|
145
166
|
},
|
|
146
167
|
{
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
168
|
+
"Test Case": "100,000 iterator",
|
|
169
|
+
"Latency Avg (ms)": "15.41",
|
|
170
|
+
"Min (ms)": "13.39",
|
|
171
|
+
"Max (ms)": "29.67",
|
|
172
|
+
"Stability": "±4.05%"
|
|
151
173
|
},
|
|
152
174
|
{
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
175
|
+
"Test Case": "100,000 set & delete orderly",
|
|
176
|
+
"Latency Avg (ms)": "436.63",
|
|
177
|
+
"Min (ms)": "426.38",
|
|
178
|
+
"Max (ms)": "457.78",
|
|
179
|
+
"Stability": "±1.52%"
|
|
157
180
|
},
|
|
158
181
|
{
|
|
159
|
-
"
|
|
160
|
-
"
|
|
161
|
-
"
|
|
162
|
-
"
|
|
182
|
+
"Test Case": "100,000 set & delete randomly",
|
|
183
|
+
"Latency Avg (ms)": "526.98",
|
|
184
|
+
"Min (ms)": "512.67",
|
|
185
|
+
"Max (ms)": "544.63",
|
|
186
|
+
"Stability": "±1.87%"
|
|
163
187
|
}
|
|
164
188
|
]
|
|
165
189
|
},
|
|
166
190
|
"hash-map": {
|
|
167
191
|
"benchmarks": [
|
|
168
192
|
{
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
193
|
+
"Test Case": "1,000,000 set",
|
|
194
|
+
"Latency Avg (ms)": "40.68",
|
|
195
|
+
"Min (ms)": "33.35",
|
|
196
|
+
"Max (ms)": "59.21",
|
|
197
|
+
"Stability": "±4.69%"
|
|
173
198
|
},
|
|
174
199
|
{
|
|
175
|
-
"
|
|
176
|
-
"
|
|
177
|
-
"
|
|
178
|
-
"
|
|
200
|
+
"Test Case": "Native JS Map 1,000,000 set",
|
|
201
|
+
"Latency Avg (ms)": "144.13",
|
|
202
|
+
"Min (ms)": "131.77",
|
|
203
|
+
"Max (ms)": "167.71",
|
|
204
|
+
"Stability": "±3.43%"
|
|
179
205
|
},
|
|
180
206
|
{
|
|
181
|
-
"
|
|
182
|
-
"
|
|
183
|
-
"
|
|
184
|
-
"
|
|
207
|
+
"Test Case": "Native JS Set 1,000,000 add",
|
|
208
|
+
"Latency Avg (ms)": "112.65",
|
|
209
|
+
"Min (ms)": "104.13",
|
|
210
|
+
"Max (ms)": "148.36",
|
|
211
|
+
"Stability": "±4.84%"
|
|
185
212
|
},
|
|
186
213
|
{
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
214
|
+
"Test Case": "1,000,000 set & get",
|
|
215
|
+
"Latency Avg (ms)": "45.40",
|
|
216
|
+
"Min (ms)": "36.83",
|
|
217
|
+
"Max (ms)": "57.24",
|
|
218
|
+
"Stability": "±4.56%"
|
|
191
219
|
},
|
|
192
220
|
{
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
221
|
+
"Test Case": "Native JS Map 1,000,000 set & get",
|
|
222
|
+
"Latency Avg (ms)": "195.80",
|
|
223
|
+
"Min (ms)": "184.61",
|
|
224
|
+
"Max (ms)": "220.64",
|
|
225
|
+
"Stability": "±3.12%"
|
|
197
226
|
},
|
|
198
227
|
{
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
228
|
+
"Test Case": "Native JS Set 1,000,000 add & has",
|
|
229
|
+
"Latency Avg (ms)": "159.47",
|
|
230
|
+
"Min (ms)": "148.45",
|
|
231
|
+
"Max (ms)": "196.09",
|
|
232
|
+
"Stability": "±4.13%"
|
|
203
233
|
},
|
|
204
234
|
{
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
235
|
+
"Test Case": "1,000,000 ObjKey set & get",
|
|
236
|
+
"Latency Avg (ms)": "239.09",
|
|
237
|
+
"Min (ms)": "210.63",
|
|
238
|
+
"Max (ms)": "272.97",
|
|
239
|
+
"Stability": "±5.14%"
|
|
209
240
|
},
|
|
210
241
|
{
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
242
|
+
"Test Case": "Native JS Map 1,000,000 ObjKey set & get",
|
|
243
|
+
"Latency Avg (ms)": "207.48",
|
|
244
|
+
"Min (ms)": "181.81",
|
|
245
|
+
"Max (ms)": "240.56",
|
|
246
|
+
"Stability": "±5.90%"
|
|
215
247
|
},
|
|
216
248
|
{
|
|
217
|
-
"
|
|
218
|
-
"
|
|
219
|
-
"
|
|
220
|
-
"
|
|
249
|
+
"Test Case": "Native JS Set 1,000,000 ObjKey add & has",
|
|
250
|
+
"Latency Avg (ms)": "188.86",
|
|
251
|
+
"Min (ms)": "162.40",
|
|
252
|
+
"Max (ms)": "246.83",
|
|
253
|
+
"Stability": "±8.41%"
|
|
221
254
|
}
|
|
222
255
|
]
|
|
223
256
|
},
|
|
224
257
|
"directed-graph": {
|
|
225
258
|
"benchmarks": [
|
|
226
259
|
{
|
|
227
|
-
"
|
|
228
|
-
"
|
|
229
|
-
"
|
|
230
|
-
"
|
|
260
|
+
"Test Case": "1,000 addVertex",
|
|
261
|
+
"Latency Avg (ms)": "0.05",
|
|
262
|
+
"Min (ms)": "0.04",
|
|
263
|
+
"Max (ms)": "0.05",
|
|
264
|
+
"Stability": "±0.37%"
|
|
231
265
|
},
|
|
232
266
|
{
|
|
233
|
-
"
|
|
234
|
-
"
|
|
235
|
-
"
|
|
236
|
-
"
|
|
267
|
+
"Test Case": "1,000 addEdge",
|
|
268
|
+
"Latency Avg (ms)": "3.00",
|
|
269
|
+
"Min (ms)": "2.78",
|
|
270
|
+
"Max (ms)": "5.35",
|
|
271
|
+
"Stability": "±2.48%"
|
|
237
272
|
},
|
|
238
273
|
{
|
|
239
|
-
"
|
|
240
|
-
"
|
|
241
|
-
"
|
|
242
|
-
"
|
|
274
|
+
"Test Case": "1,000 getVertex",
|
|
275
|
+
"Latency Avg (ms)": "0.04",
|
|
276
|
+
"Min (ms)": "0.04",
|
|
277
|
+
"Max (ms)": "0.04",
|
|
278
|
+
"Stability": "±0.52%"
|
|
243
279
|
},
|
|
244
280
|
{
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
281
|
+
"Test Case": "1,000 getEdge",
|
|
282
|
+
"Latency Avg (ms)": "44.78",
|
|
283
|
+
"Min (ms)": "40.89",
|
|
284
|
+
"Max (ms)": "97.02",
|
|
285
|
+
"Stability": "±5.62%"
|
|
249
286
|
},
|
|
250
287
|
{
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
288
|
+
"Test Case": "tarjan",
|
|
289
|
+
"Latency Avg (ms)": "241.55",
|
|
290
|
+
"Min (ms)": "235.87",
|
|
291
|
+
"Max (ms)": "269.07",
|
|
292
|
+
"Stability": "±1.82%"
|
|
255
293
|
},
|
|
256
294
|
{
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
260
|
-
"
|
|
295
|
+
"Test Case": "topologicalSort",
|
|
296
|
+
"Latency Avg (ms)": "200.74",
|
|
297
|
+
"Min (ms)": "197.47",
|
|
298
|
+
"Max (ms)": "219.65",
|
|
299
|
+
"Stability": "±1.30%"
|
|
261
300
|
}
|
|
262
301
|
]
|
|
263
302
|
},
|
|
@@ -267,32 +306,36 @@
|
|
|
267
306
|
"trie": {
|
|
268
307
|
"benchmarks": [
|
|
269
308
|
{
|
|
270
|
-
"
|
|
271
|
-
"
|
|
272
|
-
"
|
|
273
|
-
"
|
|
309
|
+
"Test Case": "100,000 push",
|
|
310
|
+
"Latency Avg (ms)": "27.66",
|
|
311
|
+
"Min (ms)": "25.13",
|
|
312
|
+
"Max (ms)": "37.31",
|
|
313
|
+
"Stability": "±1.98%"
|
|
274
314
|
},
|
|
275
315
|
{
|
|
276
|
-
"
|
|
277
|
-
"
|
|
278
|
-
"
|
|
279
|
-
"
|
|
316
|
+
"Test Case": "100,000 getWords",
|
|
317
|
+
"Latency Avg (ms)": "64.62",
|
|
318
|
+
"Min (ms)": "37.66",
|
|
319
|
+
"Max (ms)": "288.42",
|
|
320
|
+
"Stability": "±29.56%"
|
|
280
321
|
}
|
|
281
322
|
]
|
|
282
323
|
},
|
|
283
324
|
"stack": {
|
|
284
325
|
"benchmarks": [
|
|
285
326
|
{
|
|
286
|
-
"
|
|
287
|
-
"
|
|
288
|
-
"
|
|
289
|
-
"
|
|
327
|
+
"Test Case": "1,000,000 push",
|
|
328
|
+
"Latency Avg (ms)": "26.57",
|
|
329
|
+
"Min (ms)": "22.36",
|
|
330
|
+
"Max (ms)": "33.50",
|
|
331
|
+
"Stability": "±3.44%"
|
|
290
332
|
},
|
|
291
333
|
{
|
|
292
|
-
"
|
|
293
|
-
"
|
|
294
|
-
"
|
|
295
|
-
"
|
|
334
|
+
"Test Case": "1,000,000 push & pop",
|
|
335
|
+
"Latency Avg (ms)": "30.30",
|
|
336
|
+
"Min (ms)": "25.14",
|
|
337
|
+
"Max (ms)": "55.18",
|
|
338
|
+
"Stability": "±4.78%"
|
|
296
339
|
}
|
|
297
340
|
]
|
|
298
341
|
},
|