data-structure-typed 2.2.2 → 2.2.4

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.
Files changed (94) hide show
  1. package/CHANGELOG.md +3 -1
  2. package/README.md +355 -1672
  3. package/README_CN.md +509 -0
  4. package/SECURITY.md +962 -11
  5. package/SECURITY.zh-CN.md +966 -0
  6. package/SPECIFICATION.md +689 -30
  7. package/SPECIFICATION.zh-CN.md +715 -0
  8. package/SPONSOR.zh-CN.md +62 -0
  9. package/SPONSOR_POLISHED.md +62 -0
  10. package/benchmark/report.html +1 -1
  11. package/benchmark/report.json +215 -172
  12. package/dist/cjs/index.cjs +245 -72
  13. package/dist/cjs/index.cjs.map +1 -1
  14. package/dist/cjs-legacy/index.cjs +246 -72
  15. package/dist/cjs-legacy/index.cjs.map +1 -1
  16. package/dist/esm/index.mjs +245 -72
  17. package/dist/esm/index.mjs.map +1 -1
  18. package/dist/esm-legacy/index.mjs +246 -72
  19. package/dist/esm-legacy/index.mjs.map +1 -1
  20. package/dist/types/data-structures/binary-tree/avl-tree-counter.d.ts +2 -2
  21. package/dist/types/data-structures/binary-tree/avl-tree-multi-map.d.ts +5 -5
  22. package/dist/types/data-structures/binary-tree/avl-tree.d.ts +98 -5
  23. package/dist/types/data-structures/binary-tree/binary-tree.d.ts +103 -7
  24. package/dist/types/data-structures/binary-tree/bst.d.ts +202 -39
  25. package/dist/types/data-structures/binary-tree/red-black-tree.d.ts +86 -37
  26. package/dist/types/data-structures/binary-tree/tree-counter.d.ts +4 -5
  27. package/dist/types/data-structures/binary-tree/tree-multi-map.d.ts +7 -7
  28. package/dist/types/data-structures/graph/directed-graph.d.ts +126 -1
  29. package/dist/types/data-structures/graph/undirected-graph.d.ts +160 -1
  30. package/dist/types/data-structures/hash/hash-map.d.ts +110 -27
  31. package/dist/types/data-structures/heap/heap.d.ts +107 -58
  32. package/dist/types/data-structures/linked-list/doubly-linked-list.d.ts +72 -404
  33. package/dist/types/data-structures/linked-list/singly-linked-list.d.ts +121 -5
  34. package/dist/types/data-structures/queue/deque.d.ts +95 -67
  35. package/dist/types/data-structures/queue/queue.d.ts +90 -34
  36. package/dist/types/data-structures/stack/stack.d.ts +58 -40
  37. package/dist/types/data-structures/trie/trie.d.ts +109 -47
  38. package/dist/types/interfaces/binary-tree.d.ts +1 -0
  39. package/dist/types/types/data-structures/binary-tree/bst.d.ts +5 -5
  40. package/dist/umd/data-structure-typed.js +246 -72
  41. package/dist/umd/data-structure-typed.js.map +1 -1
  42. package/dist/umd/data-structure-typed.min.js +3 -3
  43. package/dist/umd/data-structure-typed.min.js.map +1 -1
  44. package/package.json +3 -2
  45. package/src/data-structures/binary-tree/avl-tree-counter.ts +1 -2
  46. package/src/data-structures/binary-tree/avl-tree-multi-map.ts +7 -8
  47. package/src/data-structures/binary-tree/avl-tree.ts +100 -7
  48. package/src/data-structures/binary-tree/binary-tree.ts +117 -7
  49. package/src/data-structures/binary-tree/bst.ts +431 -93
  50. package/src/data-structures/binary-tree/red-black-tree.ts +85 -37
  51. package/src/data-structures/binary-tree/tree-counter.ts +5 -7
  52. package/src/data-structures/binary-tree/tree-multi-map.ts +9 -10
  53. package/src/data-structures/graph/directed-graph.ts +126 -1
  54. package/src/data-structures/graph/undirected-graph.ts +160 -1
  55. package/src/data-structures/hash/hash-map.ts +110 -27
  56. package/src/data-structures/heap/heap.ts +107 -58
  57. package/src/data-structures/linked-list/doubly-linked-list.ts +72 -404
  58. package/src/data-structures/linked-list/singly-linked-list.ts +121 -5
  59. package/src/data-structures/queue/deque.ts +95 -67
  60. package/src/data-structures/queue/queue.ts +90 -34
  61. package/src/data-structures/stack/stack.ts +58 -40
  62. package/src/data-structures/trie/trie.ts +109 -47
  63. package/src/interfaces/binary-tree.ts +2 -0
  64. package/src/types/data-structures/binary-tree/bst.ts +5 -5
  65. package/test/performance/benchmark-runner.ts +14 -11
  66. package/test/performance/data-structures/binary-tree/avl-tree.test.ts +8 -8
  67. package/test/performance/data-structures/binary-tree/binary-tree-overall.test.ts +8 -8
  68. package/test/performance/data-structures/binary-tree/binary-tree.test.ts +6 -6
  69. package/test/performance/data-structures/binary-tree/bst.test.ts +5 -5
  70. package/test/performance/data-structures/binary-tree/red-black-tree.test.ts +10 -10
  71. package/test/performance/reportor.ts +2 -1
  72. package/test/performance/single-suite-runner.ts +7 -4
  73. package/test/unit/data-structures/binary-tree/avl-tree-counter.test.ts +2 -2
  74. package/test/unit/data-structures/binary-tree/avl-tree.test.ts +117 -0
  75. package/test/unit/data-structures/binary-tree/binary-tree.test.ts +166 -0
  76. package/test/unit/data-structures/binary-tree/bst.test.ts +771 -16
  77. package/test/unit/data-structures/binary-tree/overall.test.ts +2 -2
  78. package/test/unit/data-structures/binary-tree/red-black-tree.test.ts +90 -38
  79. package/test/unit/data-structures/binary-tree/tree-multi-map.test.ts +2 -2
  80. package/test/unit/data-structures/graph/directed-graph.test.ts +133 -0
  81. package/test/unit/data-structures/graph/undirected-graph.test.ts +167 -0
  82. package/test/unit/data-structures/hash/hash-map.test.ts +149 -3
  83. package/test/unit/data-structures/heap/heap.test.ts +182 -47
  84. package/test/unit/data-structures/linked-list/doubly-linked-list.test.ts +118 -14
  85. package/test/unit/data-structures/linked-list/singly-linked-list.test.ts +121 -0
  86. package/test/unit/data-structures/queue/deque.test.ts +98 -67
  87. package/test/unit/data-structures/queue/queue.test.ts +85 -51
  88. package/test/unit/data-structures/stack/stack.test.ts +142 -33
  89. package/test/unit/data-structures/trie/trie.test.ts +135 -39
  90. package/tsup.leetcode.config.js +99 -0
  91. package/typedoc.json +2 -1
  92. package/POSTS_zh-CN.md +0 -54
  93. package/README_zh-CN.md +0 -1208
  94. package/SPECIFICATION_zh-CN.md +0 -81
@@ -2,262 +2,301 @@
2
2
  "red-black-tree": {
3
3
  "benchmarks": [
4
4
  {
5
- "test name": "1,000,000 add",
6
- "time taken (ms)": "410.34",
7
- "sample mean (secs)": "0.41",
8
- "sample deviation": "0.01"
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
- "test name": "1,000,000 get",
12
- "time taken (ms)": "5.20",
13
- "sample mean (secs)": "0.01",
14
- "sample deviation": "8.16e-5"
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
- "test name": "1,000,000 iterator",
18
- "time taken (ms)": "154.25",
19
- "sample mean (secs)": "0.15",
20
- "sample deviation": "0.02"
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
- "test name": "CPT 1,000,000 add",
24
- "time taken (ms)": "656.43",
25
- "sample mean (secs)": "0.66",
26
- "sample deviation": "0.00"
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
- "test name": "CPT 1,000,000 add",
30
- "time taken (ms)": "684.17",
31
- "sample mean (secs)": "0.68",
32
- "sample deviation": "0.01"
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
- "test name": "1,000,000 push",
40
- "time taken (ms)": "26.97",
41
- "sample mean (secs)": "0.03",
42
- "sample deviation": "0.00"
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
- "test name": "100,000 push & shift",
46
- "time taken (ms)": "2.87",
47
- "sample mean (secs)": "0.00",
48
- "sample deviation": "2.71e-4"
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
- "test name": "Native JS Array 100,000 push & shift",
52
- "time taken (ms)": "1120.94",
53
- "sample mean (secs)": "1.12",
54
- "sample deviation": "0.20"
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
- "test name": "1,000,000 push",
62
- "time taken (ms)": "8.75",
63
- "sample mean (secs)": "0.01",
64
- "sample deviation": "6.99e-4"
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
- "test name": "1,000,000 push & pop",
68
- "time taken (ms)": "12.95",
69
- "sample mean (secs)": "0.01",
70
- "sample deviation": "4.21e-4"
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
- "test name": "1,000,000 push & shift",
74
- "time taken (ms)": "13.73",
75
- "sample mean (secs)": "0.01",
76
- "sample deviation": "4.53e-4"
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
- "test name": "100,000 push & shift",
80
- "time taken (ms)": "1.36",
81
- "sample mean (secs)": "0.00",
82
- "sample deviation": "5.42e-5"
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
- "test name": "Native JS Array 100,000 push & shift",
86
- "time taken (ms)": "1167.06",
87
- "sample mean (secs)": "1.17",
88
- "sample deviation": "0.26"
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
- "test name": "100,000 unshift & shift",
92
- "time taken (ms)": "1.31",
93
- "sample mean (secs)": "0.00",
94
- "sample deviation": "4.73e-5"
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
- "test name": "Native JS Array 100,000 unshift & shift",
98
- "time taken (ms)": "1911.47",
99
- "sample mean (secs)": "1.91",
100
- "sample deviation": "0.02"
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
- "test name": "100,000 add",
108
- "time taken (ms)": "4.60",
109
- "sample mean (secs)": "0.00",
110
- "sample deviation": "1.07e-4"
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
- "test name": "100,000 add & poll",
114
- "time taken (ms)": "16.96",
115
- "sample mean (secs)": "0.02",
116
- "sample deviation": "3.45e-4"
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
- "test name": "100,000 add randomly",
124
- "time taken (ms)": "324.51",
125
- "sample mean (secs)": "0.32",
126
- "sample deviation": "0.01"
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
- "test name": "100,000 add",
130
- "time taken (ms)": "299.76",
131
- "sample mean (secs)": "0.30",
132
- "sample deviation": "0.02"
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
- "test name": "100,000 get",
136
- "time taken (ms)": "0.26",
137
- "sample mean (secs)": "2.58e-4",
138
- "sample deviation": "3.65e-6"
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
- "test name": "100,000 getNode",
142
- "time taken (ms)": "169.33",
143
- "sample mean (secs)": "0.17",
144
- "sample deviation": "0.00"
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
- "test name": "100,000 iterator",
148
- "time taken (ms)": "14.43",
149
- "sample mean (secs)": "0.01",
150
- "sample deviation": "0.00"
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
- "test name": "100,000 add & delete orderly",
154
- "time taken (ms)": "434.44",
155
- "sample mean (secs)": "0.43",
156
- "sample deviation": "0.01"
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
- "test name": "100,000 add & delete randomly",
160
- "time taken (ms)": "541.78",
161
- "sample mean (secs)": "0.54",
162
- "sample deviation": "0.01"
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
- "test name": "1,000,000 set",
170
- "time taken (ms)": "43.23",
171
- "sample mean (secs)": "0.04",
172
- "sample deviation": "0.01"
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
- "test name": "Native JS Map 1,000,000 set",
176
- "time taken (ms)": "147.12",
177
- "sample mean (secs)": "0.15",
178
- "sample deviation": "0.01"
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
- "test name": "Native JS Set 1,000,000 add",
182
- "time taken (ms)": "116.18",
183
- "sample mean (secs)": "0.12",
184
- "sample deviation": "0.01"
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
- "test name": "1,000,000 set & get",
188
- "time taken (ms)": "46.39",
189
- "sample mean (secs)": "0.05",
190
- "sample deviation": "0.01"
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
- "test name": "Native JS Map 1,000,000 set & get",
194
- "time taken (ms)": "196.92",
195
- "sample mean (secs)": "0.20",
196
- "sample deviation": "0.01"
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
- "test name": "Native JS Set 1,000,000 add & has",
200
- "time taken (ms)": "163.92",
201
- "sample mean (secs)": "0.16",
202
- "sample deviation": "0.01"
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
- "test name": "1,000,000 ObjKey set & get",
206
- "time taken (ms)": "243.36",
207
- "sample mean (secs)": "0.24",
208
- "sample deviation": "0.03"
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
- "test name": "Native JS Map 1,000,000 ObjKey set & get",
212
- "time taken (ms)": "211.66",
213
- "sample mean (secs)": "0.21",
214
- "sample deviation": "0.02"
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
- "test name": "Native JS Set 1,000,000 ObjKey add & has",
218
- "time taken (ms)": "196.57",
219
- "sample mean (secs)": "0.20",
220
- "sample deviation": "0.01"
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
- "test name": "1,000 addVertex",
228
- "time taken (ms)": "0.05",
229
- "sample mean (secs)": "4.60e-5",
230
- "sample deviation": "6.59e-7"
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
- "test name": "1,000 addEdge",
234
- "time taken (ms)": "3.02",
235
- "sample mean (secs)": "0.00",
236
- "sample deviation": "2.85e-4"
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
- "test name": "1,000 getVertex",
240
- "time taken (ms)": "0.04",
241
- "sample mean (secs)": "3.77e-5",
242
- "sample deviation": "4.66e-7"
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
- "test name": "1,000 getEdge",
246
- "time taken (ms)": "41.48",
247
- "sample mean (secs)": "0.04",
248
- "sample deviation": "0.01"
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
- "test name": "tarjan",
252
- "time taken (ms)": "240.33",
253
- "sample mean (secs)": "0.24",
254
- "sample deviation": "0.01"
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
- "test name": "topologicalSort",
258
- "time taken (ms)": "195.62",
259
- "sample mean (secs)": "0.20",
260
- "sample deviation": "0.01"
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
- "test name": "100,000 push",
271
- "time taken (ms)": "27.15",
272
- "sample mean (secs)": "0.03",
273
- "sample deviation": "6.61e-4"
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
- "test name": "100,000 getWords",
277
- "time taken (ms)": "41.18",
278
- "sample mean (secs)": "0.04",
279
- "sample deviation": "0.00"
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
- "test name": "1,000,000 push",
287
- "time taken (ms)": "25.21",
288
- "sample mean (secs)": "0.03",
289
- "sample deviation": "0.00"
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
- "test name": "1,000,000 push & pop",
293
- "time taken (ms)": "29.12",
294
- "sample mean (secs)": "0.03",
295
- "sample deviation": "0.00"
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
  },