data-structure-typed 1.50.1 → 1.50.2
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 +2 -1
- package/README.md +26 -26
- package/benchmark/report.html +13 -13
- package/benchmark/report.json +153 -159
- package/dist/cjs/data-structures/base/iterable-base.d.ts +114 -9
- package/dist/cjs/data-structures/base/iterable-base.js +143 -7
- package/dist/cjs/data-structures/base/iterable-base.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/avl-tree.d.ts +43 -46
- package/dist/cjs/data-structures/binary-tree/avl-tree.js +68 -71
- package/dist/cjs/data-structures/binary-tree/avl-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/binary-tree.d.ts +244 -199
- package/dist/cjs/data-structures/binary-tree/binary-tree.js +484 -376
- package/dist/cjs/data-structures/binary-tree/binary-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/bst.d.ts +54 -74
- package/dist/cjs/data-structures/binary-tree/bst.js +30 -71
- package/dist/cjs/data-structures/binary-tree/bst.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/rb-tree.d.ts +78 -60
- package/dist/cjs/data-structures/binary-tree/rb-tree.js +84 -89
- package/dist/cjs/data-structures/binary-tree/rb-tree.js.map +1 -1
- package/dist/cjs/data-structures/binary-tree/tree-multimap.d.ts +37 -56
- package/dist/cjs/data-structures/binary-tree/tree-multimap.js +64 -85
- package/dist/cjs/data-structures/binary-tree/tree-multimap.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/graph/directed-graph.d.ts +14 -0
- package/dist/cjs/data-structures/graph/directed-graph.js +26 -0
- package/dist/cjs/data-structures/graph/directed-graph.js.map +1 -1
- package/dist/cjs/data-structures/graph/map-graph.d.ts +8 -0
- package/dist/cjs/data-structures/graph/map-graph.js +14 -0
- package/dist/cjs/data-structures/graph/map-graph.js.map +1 -1
- package/dist/cjs/data-structures/graph/undirected-graph.d.ts +16 -0
- package/dist/cjs/data-structures/graph/undirected-graph.js +25 -0
- package/dist/cjs/data-structures/graph/undirected-graph.js.map +1 -1
- package/dist/cjs/data-structures/hash/hash-map.d.ts +121 -15
- package/dist/cjs/data-structures/hash/hash-map.js +160 -25
- package/dist/cjs/data-structures/hash/hash-map.js.map +1 -1
- package/dist/cjs/data-structures/heap/heap.d.ts +66 -6
- package/dist/cjs/data-structures/heap/heap.js +66 -6
- package/dist/cjs/data-structures/heap/heap.js.map +1 -1
- package/dist/cjs/data-structures/linked-list/doubly-linked-list.d.ts +67 -50
- package/dist/cjs/data-structures/linked-list/doubly-linked-list.js +70 -64
- 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 +128 -103
- package/dist/cjs/data-structures/linked-list/singly-linked-list.js +130 -112
- package/dist/cjs/data-structures/linked-list/singly-linked-list.js.map +1 -1
- package/dist/cjs/data-structures/linked-list/skip-linked-list.d.ts +63 -36
- package/dist/cjs/data-structures/linked-list/skip-linked-list.js +63 -36
- package/dist/cjs/data-structures/linked-list/skip-linked-list.js.map +1 -1
- package/dist/cjs/data-structures/matrix/matrix.d.ts +35 -4
- package/dist/cjs/data-structures/matrix/matrix.js +50 -11
- package/dist/cjs/data-structures/matrix/matrix.js.map +1 -1
- package/dist/cjs/data-structures/queue/deque.d.ts +49 -19
- package/dist/cjs/data-structures/queue/deque.js +101 -47
- package/dist/cjs/data-structures/queue/deque.js.map +1 -1
- package/dist/cjs/data-structures/queue/queue.d.ts +39 -5
- package/dist/cjs/data-structures/queue/queue.js +47 -5
- package/dist/cjs/data-structures/queue/queue.js.map +1 -1
- package/dist/cjs/data-structures/stack/stack.d.ts +16 -0
- package/dist/cjs/data-structures/stack/stack.js +22 -0
- package/dist/cjs/data-structures/stack/stack.js.map +1 -1
- package/dist/cjs/data-structures/trie/trie.d.ts +38 -1
- package/dist/cjs/data-structures/trie/trie.js +41 -0
- package/dist/cjs/data-structures/trie/trie.js.map +1 -1
- package/dist/cjs/types/data-structures/binary-tree/binary-tree.d.ts +1 -1
- package/dist/cjs/types/data-structures/hash/hash-map.d.ts +4 -3
- package/dist/cjs/types/utils/utils.d.ts +1 -0
- package/dist/mjs/data-structures/base/iterable-base.d.ts +114 -9
- package/dist/mjs/data-structures/base/iterable-base.js +143 -7
- package/dist/mjs/data-structures/binary-tree/avl-tree.d.ts +43 -46
- package/dist/mjs/data-structures/binary-tree/avl-tree.js +68 -71
- package/dist/mjs/data-structures/binary-tree/binary-tree.d.ts +244 -199
- package/dist/mjs/data-structures/binary-tree/binary-tree.js +483 -375
- package/dist/mjs/data-structures/binary-tree/bst.d.ts +54 -74
- package/dist/mjs/data-structures/binary-tree/bst.js +30 -71
- package/dist/mjs/data-structures/binary-tree/rb-tree.d.ts +78 -60
- package/dist/mjs/data-structures/binary-tree/rb-tree.js +84 -89
- package/dist/mjs/data-structures/binary-tree/tree-multimap.d.ts +37 -56
- package/dist/mjs/data-structures/binary-tree/tree-multimap.js +64 -85
- 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/graph/directed-graph.d.ts +14 -0
- package/dist/mjs/data-structures/graph/directed-graph.js +26 -0
- package/dist/mjs/data-structures/graph/map-graph.d.ts +8 -0
- package/dist/mjs/data-structures/graph/map-graph.js +14 -0
- package/dist/mjs/data-structures/graph/undirected-graph.d.ts +16 -0
- package/dist/mjs/data-structures/graph/undirected-graph.js +25 -0
- package/dist/mjs/data-structures/hash/hash-map.d.ts +121 -15
- package/dist/mjs/data-structures/hash/hash-map.js +160 -25
- package/dist/mjs/data-structures/heap/heap.d.ts +66 -6
- package/dist/mjs/data-structures/heap/heap.js +66 -6
- package/dist/mjs/data-structures/linked-list/doubly-linked-list.d.ts +67 -50
- package/dist/mjs/data-structures/linked-list/doubly-linked-list.js +70 -64
- package/dist/mjs/data-structures/linked-list/singly-linked-list.d.ts +128 -103
- package/dist/mjs/data-structures/linked-list/singly-linked-list.js +130 -112
- package/dist/mjs/data-structures/linked-list/skip-linked-list.d.ts +63 -36
- package/dist/mjs/data-structures/linked-list/skip-linked-list.js +63 -36
- package/dist/mjs/data-structures/matrix/matrix.d.ts +35 -4
- package/dist/mjs/data-structures/matrix/matrix.js +50 -11
- package/dist/mjs/data-structures/queue/deque.d.ts +49 -19
- package/dist/mjs/data-structures/queue/deque.js +101 -47
- package/dist/mjs/data-structures/queue/queue.d.ts +39 -5
- package/dist/mjs/data-structures/queue/queue.js +47 -5
- package/dist/mjs/data-structures/stack/stack.d.ts +16 -0
- package/dist/mjs/data-structures/stack/stack.js +22 -0
- package/dist/mjs/data-structures/trie/trie.d.ts +38 -1
- package/dist/mjs/data-structures/trie/trie.js +41 -0
- package/dist/mjs/types/data-structures/binary-tree/binary-tree.d.ts +1 -1
- package/dist/mjs/types/data-structures/hash/hash-map.d.ts +4 -3
- package/dist/mjs/types/utils/utils.d.ts +1 -0
- package/dist/umd/data-structure-typed.js +1730 -1042
- package/dist/umd/data-structure-typed.min.js +3 -3
- package/dist/umd/data-structure-typed.min.js.map +1 -1
- package/package.json +8 -3
- package/src/data-structures/base/iterable-base.ts +172 -19
- package/src/data-structures/binary-tree/avl-tree.ts +97 -97
- package/src/data-structures/binary-tree/binary-tree.ts +674 -671
- package/src/data-structures/binary-tree/bst.ts +89 -131
- package/src/data-structures/binary-tree/rb-tree.ts +127 -155
- package/src/data-structures/binary-tree/tree-multimap.ts +96 -112
- package/src/data-structures/graph/abstract-graph.ts +4 -0
- package/src/data-structures/graph/directed-graph.ts +30 -0
- package/src/data-structures/graph/map-graph.ts +15 -0
- package/src/data-structures/graph/undirected-graph.ts +28 -0
- package/src/data-structures/hash/hash-map.ts +175 -34
- package/src/data-structures/heap/heap.ts +66 -6
- package/src/data-structures/linked-list/doubly-linked-list.ts +72 -66
- package/src/data-structures/linked-list/singly-linked-list.ts +132 -114
- package/src/data-structures/linked-list/skip-linked-list.ts +63 -37
- package/src/data-structures/matrix/matrix.ts +52 -12
- package/src/data-structures/queue/deque.ts +108 -49
- package/src/data-structures/queue/queue.ts +51 -5
- package/src/data-structures/stack/stack.ts +24 -0
- package/src/data-structures/trie/trie.ts +45 -1
- package/src/types/data-structures/binary-tree/binary-tree.ts +1 -1
- package/src/types/data-structures/hash/hash-map.ts +4 -3
- package/src/types/utils/utils.ts +2 -0
- package/test/performance/data-structures/graph/directed-graph.test.ts +3 -3
- package/test/performance/data-structures/queue/deque.test.ts +26 -25
- package/test/unit/data-structures/binary-tree/avl-tree.test.ts +37 -0
- package/test/unit/data-structures/binary-tree/binary-tree.test.ts +46 -17
- package/test/unit/data-structures/binary-tree/bst.test.ts +65 -1
- package/test/unit/data-structures/binary-tree/rb-tree.test.ts +38 -1
- package/test/unit/data-structures/binary-tree/tree-multimap.test.ts +37 -32
- package/test/unit/data-structures/graph/abstract-graph.test.ts +8 -0
- package/test/unit/data-structures/graph/directed-graph.test.ts +249 -0
- package/test/unit/data-structures/hash/hash-map.test.ts +376 -353
- package/test/unit/data-structures/heap/heap.test.ts +18 -1
- package/test/unit/data-structures/linked-list/doubly-linked-list.test.ts +24 -5
- package/test/unit/data-structures/linked-list/singly-linked-list.test.ts +20 -2
- package/test/unit/data-structures/linked-list/skip-list.test.ts +1 -1
- package/test/unit/data-structures/queue/deque.test.ts +65 -5
- package/test/unit/data-structures/queue/queue.test.ts +22 -5
- package/test/unit/data-structures/stack/stack.test.ts +17 -0
- package/test/unit/data-structures/trie/trie.test.ts +17 -0
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": "0.
|
|
6
|
+
"time taken (ms)": "119.60",
|
|
7
|
+
"executions per sec": "8.36",
|
|
8
|
+
"sample deviation": "0.00"
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
11
|
"test name": "10,000 add & delete randomly",
|
|
12
|
-
"time taken (ms)": "
|
|
13
|
-
"executions per sec": "5.
|
|
12
|
+
"time taken (ms)": "178.17",
|
|
13
|
+
"executions per sec": "5.61",
|
|
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": "7.
|
|
20
|
-
"sample deviation": "7.
|
|
18
|
+
"time taken (ms)": "129.03",
|
|
19
|
+
"executions per sec": "7.75",
|
|
20
|
+
"sample deviation": "7.48e-4"
|
|
21
21
|
},
|
|
22
22
|
{
|
|
23
23
|
"test name": "10,000 get",
|
|
24
|
-
"time taken (ms)": "48.
|
|
25
|
-
"executions per sec": "20.
|
|
26
|
-
"sample deviation": "3.
|
|
24
|
+
"time taken (ms)": "48.79",
|
|
25
|
+
"executions per sec": "20.49",
|
|
26
|
+
"sample deviation": "3.13e-4"
|
|
27
27
|
}
|
|
28
28
|
],
|
|
29
29
|
"testName": "avl-tree"
|
|
@@ -32,39 +32,39 @@
|
|
|
32
32
|
"benchmarks": [
|
|
33
33
|
{
|
|
34
34
|
"test name": "10,000 RBTree add",
|
|
35
|
-
"time taken (ms)": "5.
|
|
36
|
-
"executions per sec": "
|
|
37
|
-
"sample deviation": "
|
|
35
|
+
"time taken (ms)": "5.80",
|
|
36
|
+
"executions per sec": "172.50",
|
|
37
|
+
"sample deviation": "7.88e-5"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"test name": "10,000 RBTree add & delete randomly",
|
|
41
|
-
"time taken (ms)": "16.
|
|
42
|
-
"executions per sec": "61.
|
|
43
|
-
"sample deviation": "0.
|
|
41
|
+
"time taken (ms)": "16.33",
|
|
42
|
+
"executions per sec": "61.24",
|
|
43
|
+
"sample deviation": "0.00"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"test name": "10,000 RBTree get",
|
|
47
|
-
"time taken (ms)": "
|
|
48
|
-
"executions per sec": "
|
|
47
|
+
"time taken (ms)": "20.95",
|
|
48
|
+
"executions per sec": "47.74",
|
|
49
49
|
"sample deviation": "0.00"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"test name": "10,000 AVLTree add",
|
|
53
|
-
"time taken (ms)": "
|
|
54
|
-
"executions per sec": "
|
|
55
|
-
"sample deviation": "0.
|
|
53
|
+
"time taken (ms)": "131.91",
|
|
54
|
+
"executions per sec": "7.58",
|
|
55
|
+
"sample deviation": "0.01"
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
58
|
"test name": "10,000 AVLTree add & delete randomly",
|
|
59
|
-
"time taken (ms)": "
|
|
60
|
-
"executions per sec": "
|
|
61
|
-
"sample deviation": "0.
|
|
59
|
+
"time taken (ms)": "202.75",
|
|
60
|
+
"executions per sec": "4.93",
|
|
61
|
+
"sample deviation": "0.04"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"test name": "10,000 AVLTree get",
|
|
65
|
-
"time taken (ms)": "
|
|
66
|
-
"executions per sec": "
|
|
67
|
-
"sample deviation": "
|
|
65
|
+
"time taken (ms)": "1.02",
|
|
66
|
+
"executions per sec": "984.65",
|
|
67
|
+
"sample deviation": "2.43e-4"
|
|
68
68
|
}
|
|
69
69
|
],
|
|
70
70
|
"testName": "binary-tree-overall"
|
|
@@ -73,27 +73,27 @@
|
|
|
73
73
|
"benchmarks": [
|
|
74
74
|
{
|
|
75
75
|
"test name": "100,000 add",
|
|
76
|
-
"time taken (ms)": "
|
|
77
|
-
"executions per sec": "
|
|
78
|
-
"sample deviation": "0.
|
|
76
|
+
"time taken (ms)": "88.57",
|
|
77
|
+
"executions per sec": "11.29",
|
|
78
|
+
"sample deviation": "0.01"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"test name": "100,000 add & delete randomly",
|
|
82
|
-
"time taken (ms)": "
|
|
83
|
-
"executions per sec": "
|
|
84
|
-
"sample deviation": "0.
|
|
82
|
+
"time taken (ms)": "266.59",
|
|
83
|
+
"executions per sec": "3.75",
|
|
84
|
+
"sample deviation": "0.06"
|
|
85
85
|
},
|
|
86
86
|
{
|
|
87
87
|
"test name": "100,000 getNode",
|
|
88
|
-
"time taken (ms)": "
|
|
89
|
-
"executions per sec": "
|
|
90
|
-
"sample deviation": "
|
|
88
|
+
"time taken (ms)": "201.81",
|
|
89
|
+
"executions per sec": "4.96",
|
|
90
|
+
"sample deviation": "0.03"
|
|
91
91
|
},
|
|
92
92
|
{
|
|
93
93
|
"test name": "100,000 add & iterator",
|
|
94
|
-
"time taken (ms)": "
|
|
95
|
-
"executions per sec": "8.
|
|
96
|
-
"sample deviation": "0.
|
|
94
|
+
"time taken (ms)": "116.38",
|
|
95
|
+
"executions per sec": "8.59",
|
|
96
|
+
"sample deviation": "0.02"
|
|
97
97
|
}
|
|
98
98
|
],
|
|
99
99
|
"testName": "rb-tree"
|
|
@@ -103,43 +103,43 @@
|
|
|
103
103
|
{
|
|
104
104
|
"test name": "1,000 addVertex",
|
|
105
105
|
"time taken (ms)": "0.10",
|
|
106
|
-
"executions per sec": "
|
|
107
|
-
"sample deviation": "1.
|
|
106
|
+
"executions per sec": "9751.73",
|
|
107
|
+
"sample deviation": "1.85e-6"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"test name": "1,000 addEdge",
|
|
111
|
-
"time taken (ms)": "6.
|
|
112
|
-
"executions per sec": "
|
|
113
|
-
"sample deviation": "
|
|
111
|
+
"time taken (ms)": "6.08",
|
|
112
|
+
"executions per sec": "164.61",
|
|
113
|
+
"sample deviation": "1.04e-4"
|
|
114
114
|
},
|
|
115
115
|
{
|
|
116
116
|
"test name": "1,000 getVertex",
|
|
117
117
|
"time taken (ms)": "0.05",
|
|
118
|
-
"executions per sec": "2.
|
|
119
|
-
"sample deviation": "3.
|
|
118
|
+
"executions per sec": "2.17e+4",
|
|
119
|
+
"sample deviation": "3.55e-7"
|
|
120
120
|
},
|
|
121
121
|
{
|
|
122
122
|
"test name": "1,000 getEdge",
|
|
123
|
-
"time taken (ms)": "
|
|
124
|
-
"executions per sec": "
|
|
123
|
+
"time taken (ms)": "25.95",
|
|
124
|
+
"executions per sec": "38.53",
|
|
125
125
|
"sample deviation": "0.01"
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
128
|
"test name": "tarjan",
|
|
129
|
-
"time taken (ms)": "
|
|
130
|
-
"executions per sec": "4.
|
|
129
|
+
"time taken (ms)": "228.15",
|
|
130
|
+
"executions per sec": "4.38",
|
|
131
131
|
"sample deviation": "0.01"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"test name": "tarjan all",
|
|
135
|
-
"time taken (ms)": "
|
|
136
|
-
"executions per sec": "0.
|
|
137
|
-
"sample deviation": "0.
|
|
135
|
+
"time taken (ms)": "6998.36",
|
|
136
|
+
"executions per sec": "0.14",
|
|
137
|
+
"sample deviation": "0.03"
|
|
138
138
|
},
|
|
139
139
|
{
|
|
140
140
|
"test name": "topologicalSort",
|
|
141
|
-
"time taken (ms)": "
|
|
142
|
-
"executions per sec": "5.
|
|
141
|
+
"time taken (ms)": "187.15",
|
|
142
|
+
"executions per sec": "5.34",
|
|
143
143
|
"sample deviation": "0.00"
|
|
144
144
|
}
|
|
145
145
|
],
|
|
@@ -149,57 +149,57 @@
|
|
|
149
149
|
"benchmarks": [
|
|
150
150
|
{
|
|
151
151
|
"test name": "1,000,000 set",
|
|
152
|
-
"time taken (ms)": "
|
|
153
|
-
"executions per sec": "
|
|
154
|
-
"sample deviation": "0.
|
|
152
|
+
"time taken (ms)": "117.95",
|
|
153
|
+
"executions per sec": "8.48",
|
|
154
|
+
"sample deviation": "0.04"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
157
|
"test name": "Native Map 1,000,000 set",
|
|
158
|
-
"time taken (ms)": "
|
|
159
|
-
"executions per sec": "4.
|
|
160
|
-
"sample deviation": "0.
|
|
158
|
+
"time taken (ms)": "217.09",
|
|
159
|
+
"executions per sec": "4.61",
|
|
160
|
+
"sample deviation": "0.03"
|
|
161
161
|
},
|
|
162
162
|
{
|
|
163
163
|
"test name": "Native Set 1,000,000 add",
|
|
164
|
-
"time taken (ms)": "
|
|
165
|
-
"executions per sec": "5.
|
|
166
|
-
"sample deviation": "0.
|
|
164
|
+
"time taken (ms)": "168.56",
|
|
165
|
+
"executions per sec": "5.93",
|
|
166
|
+
"sample deviation": "0.02"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
169
|
"test name": "1,000,000 set & get",
|
|
170
|
-
"time taken (ms)": "
|
|
171
|
-
"executions per sec": "8.
|
|
172
|
-
"sample deviation": "0.
|
|
170
|
+
"time taken (ms)": "121.33",
|
|
171
|
+
"executions per sec": "8.24",
|
|
172
|
+
"sample deviation": "0.03"
|
|
173
173
|
},
|
|
174
174
|
{
|
|
175
175
|
"test name": "Native Map 1,000,000 set & get",
|
|
176
|
-
"time taken (ms)": "
|
|
177
|
-
"executions per sec": "3.
|
|
178
|
-
"sample deviation": "0.
|
|
176
|
+
"time taken (ms)": "268.81",
|
|
177
|
+
"executions per sec": "3.72",
|
|
178
|
+
"sample deviation": "0.02"
|
|
179
179
|
},
|
|
180
180
|
{
|
|
181
181
|
"test name": "Native Set 1,000,000 add & has",
|
|
182
|
-
"time taken (ms)": "
|
|
183
|
-
"executions per sec": "5.
|
|
184
|
-
"sample deviation": "0.
|
|
182
|
+
"time taken (ms)": "172.46",
|
|
183
|
+
"executions per sec": "5.80",
|
|
184
|
+
"sample deviation": "0.01"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
187
|
"test name": "1,000,000 ObjKey set & get",
|
|
188
|
-
"time taken (ms)": "
|
|
189
|
-
"executions per sec": "
|
|
190
|
-
"sample deviation": "0.
|
|
188
|
+
"time taken (ms)": "411.49",
|
|
189
|
+
"executions per sec": "2.43",
|
|
190
|
+
"sample deviation": "0.09"
|
|
191
191
|
},
|
|
192
192
|
{
|
|
193
193
|
"test name": "Native Map 1,000,000 ObjKey set & get",
|
|
194
|
-
"time taken (ms)": "
|
|
195
|
-
"executions per sec": "
|
|
196
|
-
"sample deviation": "0.
|
|
194
|
+
"time taken (ms)": "335.40",
|
|
195
|
+
"executions per sec": "2.98",
|
|
196
|
+
"sample deviation": "0.07"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
199
|
"test name": "Native Set 1,000,000 ObjKey add & has",
|
|
200
|
-
"time taken (ms)": "
|
|
201
|
-
"executions per sec": "3.
|
|
202
|
-
"sample deviation": "0.
|
|
200
|
+
"time taken (ms)": "287.11",
|
|
201
|
+
"executions per sec": "3.48",
|
|
202
|
+
"sample deviation": "0.06"
|
|
203
203
|
}
|
|
204
204
|
],
|
|
205
205
|
"testName": "hash-map"
|
|
@@ -208,21 +208,21 @@
|
|
|
208
208
|
"benchmarks": [
|
|
209
209
|
{
|
|
210
210
|
"test name": "100,000 add & poll",
|
|
211
|
-
"time taken (ms)": "23.
|
|
212
|
-
"executions per sec": "
|
|
213
|
-
"sample deviation": "
|
|
211
|
+
"time taken (ms)": "23.77",
|
|
212
|
+
"executions per sec": "42.07",
|
|
213
|
+
"sample deviation": "2.92e-4"
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
"test name": "100,000 add & dfs",
|
|
217
|
-
"time taken (ms)": "
|
|
218
|
-
"executions per sec": "
|
|
219
|
-
"sample deviation": "0.
|
|
217
|
+
"time taken (ms)": "36.94",
|
|
218
|
+
"executions per sec": "27.07",
|
|
219
|
+
"sample deviation": "0.01"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
222
|
"test name": "10,000 fib add & pop",
|
|
223
|
-
"time taken (ms)": "
|
|
224
|
-
"executions per sec": "2.
|
|
225
|
-
"sample deviation": "0.
|
|
223
|
+
"time taken (ms)": "374.40",
|
|
224
|
+
"executions per sec": "2.67",
|
|
225
|
+
"sample deviation": "0.04"
|
|
226
226
|
}
|
|
227
227
|
],
|
|
228
228
|
"testName": "heap"
|
|
@@ -231,27 +231,27 @@
|
|
|
231
231
|
"benchmarks": [
|
|
232
232
|
{
|
|
233
233
|
"test name": "1,000,000 push",
|
|
234
|
-
"time taken (ms)": "
|
|
235
|
-
"executions per sec": "4.
|
|
236
|
-
"sample deviation": "0.
|
|
234
|
+
"time taken (ms)": "235.15",
|
|
235
|
+
"executions per sec": "4.25",
|
|
236
|
+
"sample deviation": "0.05"
|
|
237
237
|
},
|
|
238
238
|
{
|
|
239
239
|
"test name": "1,000,000 unshift",
|
|
240
|
-
"time taken (ms)": "
|
|
241
|
-
"executions per sec": "4.
|
|
240
|
+
"time taken (ms)": "221.59",
|
|
241
|
+
"executions per sec": "4.51",
|
|
242
242
|
"sample deviation": "0.08"
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
245
|
"test name": "1,000,000 unshift & shift",
|
|
246
|
-
"time taken (ms)": "
|
|
247
|
-
"executions per sec": "5.
|
|
248
|
-
"sample deviation": "0.
|
|
246
|
+
"time taken (ms)": "172.11",
|
|
247
|
+
"executions per sec": "5.81",
|
|
248
|
+
"sample deviation": "0.02"
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
251
|
"test name": "1,000,000 addBefore",
|
|
252
|
-
"time taken (ms)": "
|
|
253
|
-
"executions per sec": "
|
|
254
|
-
"sample deviation": "0.
|
|
252
|
+
"time taken (ms)": "322.82",
|
|
253
|
+
"executions per sec": "3.10",
|
|
254
|
+
"sample deviation": "0.04"
|
|
255
255
|
}
|
|
256
256
|
],
|
|
257
257
|
"testName": "doubly-linked-list"
|
|
@@ -260,20 +260,20 @@
|
|
|
260
260
|
"benchmarks": [
|
|
261
261
|
{
|
|
262
262
|
"test name": "1,000,000 push & shift",
|
|
263
|
-
"time taken (ms)": "
|
|
264
|
-
"executions per sec": "4.
|
|
265
|
-
"sample deviation": "0.
|
|
263
|
+
"time taken (ms)": "212.64",
|
|
264
|
+
"executions per sec": "4.70",
|
|
265
|
+
"sample deviation": "0.07"
|
|
266
266
|
},
|
|
267
267
|
{
|
|
268
268
|
"test name": "10,000 push & pop",
|
|
269
|
-
"time taken (ms)": "
|
|
270
|
-
"executions per sec": "4.
|
|
269
|
+
"time taken (ms)": "221.21",
|
|
270
|
+
"executions per sec": "4.52",
|
|
271
271
|
"sample deviation": "0.01"
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
"test name": "10,000 addBefore",
|
|
275
|
-
"time taken (ms)": "
|
|
276
|
-
"executions per sec": "
|
|
275
|
+
"time taken (ms)": "251.81",
|
|
276
|
+
"executions per sec": "3.97",
|
|
277
277
|
"sample deviation": "0.01"
|
|
278
278
|
}
|
|
279
279
|
],
|
|
@@ -283,9 +283,9 @@
|
|
|
283
283
|
"benchmarks": [
|
|
284
284
|
{
|
|
285
285
|
"test name": "100,000 add & poll",
|
|
286
|
-
"time taken (ms)": "75.
|
|
287
|
-
"executions per sec": "13.
|
|
288
|
-
"sample deviation": "
|
|
286
|
+
"time taken (ms)": "75.00",
|
|
287
|
+
"executions per sec": "13.33",
|
|
288
|
+
"sample deviation": "9.50e-4"
|
|
289
289
|
}
|
|
290
290
|
],
|
|
291
291
|
"testName": "priority-queue"
|
|
@@ -294,45 +294,39 @@
|
|
|
294
294
|
"benchmarks": [
|
|
295
295
|
{
|
|
296
296
|
"test name": "1,000,000 push",
|
|
297
|
-
"time taken (ms)": "13.
|
|
298
|
-
"executions per sec": "
|
|
299
|
-
"sample deviation": "
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"test name": "10,000 push & delete",
|
|
303
|
-
"time taken (ms)": "4716.79",
|
|
304
|
-
"executions per sec": "0.21",
|
|
305
|
-
"sample deviation": "0.13"
|
|
297
|
+
"time taken (ms)": "13.26",
|
|
298
|
+
"executions per sec": "75.43",
|
|
299
|
+
"sample deviation": "0.00"
|
|
306
300
|
},
|
|
307
301
|
{
|
|
308
302
|
"test name": "1,000,000 push & pop",
|
|
309
|
-
"time taken (ms)": "
|
|
310
|
-
"executions per sec": "
|
|
311
|
-
"sample deviation": "
|
|
303
|
+
"time taken (ms)": "21.24",
|
|
304
|
+
"executions per sec": "47.08",
|
|
305
|
+
"sample deviation": "1.57e-4"
|
|
312
306
|
},
|
|
313
307
|
{
|
|
314
308
|
"test name": "100,000 push & shift",
|
|
315
|
-
"time taken (ms)": "2.
|
|
316
|
-
"executions per sec": "
|
|
317
|
-
"sample deviation": "
|
|
309
|
+
"time taken (ms)": "2.20",
|
|
310
|
+
"executions per sec": "453.65",
|
|
311
|
+
"sample deviation": "5.13e-4"
|
|
318
312
|
},
|
|
319
313
|
{
|
|
320
314
|
"test name": "Native Array 100,000 push & shift",
|
|
321
|
-
"time taken (ms)": "
|
|
322
|
-
"executions per sec": "0.
|
|
323
|
-
"sample deviation": "0.
|
|
315
|
+
"time taken (ms)": "2165.42",
|
|
316
|
+
"executions per sec": "0.46",
|
|
317
|
+
"sample deviation": "0.19"
|
|
324
318
|
},
|
|
325
319
|
{
|
|
326
320
|
"test name": "100,000 unshift & shift",
|
|
327
|
-
"time taken (ms)": "2.
|
|
328
|
-
"executions per sec": "
|
|
329
|
-
"sample deviation": "
|
|
321
|
+
"time taken (ms)": "2.19",
|
|
322
|
+
"executions per sec": "455.62",
|
|
323
|
+
"sample deviation": "4.59e-4"
|
|
330
324
|
},
|
|
331
325
|
{
|
|
332
326
|
"test name": "Native Array 100,000 unshift & shift",
|
|
333
|
-
"time taken (ms)": "
|
|
334
|
-
"executions per sec": "0.
|
|
335
|
-
"sample deviation": "0.
|
|
327
|
+
"time taken (ms)": "4298.71",
|
|
328
|
+
"executions per sec": "0.23",
|
|
329
|
+
"sample deviation": "0.13"
|
|
336
330
|
}
|
|
337
331
|
],
|
|
338
332
|
"testName": "deque"
|
|
@@ -341,27 +335,27 @@
|
|
|
341
335
|
"benchmarks": [
|
|
342
336
|
{
|
|
343
337
|
"test name": "1,000,000 push",
|
|
344
|
-
"time taken (ms)": "44
|
|
345
|
-
"executions per sec": "
|
|
338
|
+
"time taken (ms)": "46.44",
|
|
339
|
+
"executions per sec": "21.53",
|
|
346
340
|
"sample deviation": "0.01"
|
|
347
341
|
},
|
|
348
342
|
{
|
|
349
343
|
"test name": "100,000 push & shift",
|
|
350
|
-
"time taken (ms)": "
|
|
351
|
-
"executions per sec": "
|
|
352
|
-
"sample deviation": "1.
|
|
344
|
+
"time taken (ms)": "5.00",
|
|
345
|
+
"executions per sec": "199.87",
|
|
346
|
+
"sample deviation": "1.37e-4"
|
|
353
347
|
},
|
|
354
348
|
{
|
|
355
349
|
"test name": "Native Array 100,000 push & shift",
|
|
356
|
-
"time taken (ms)": "
|
|
357
|
-
"executions per sec": "0.
|
|
350
|
+
"time taken (ms)": "2276.16",
|
|
351
|
+
"executions per sec": "0.44",
|
|
358
352
|
"sample deviation": "0.12"
|
|
359
353
|
},
|
|
360
354
|
{
|
|
361
355
|
"test name": "Native Array 100,000 push & pop",
|
|
362
|
-
"time taken (ms)": "4.
|
|
363
|
-
"executions per sec": "
|
|
364
|
-
"sample deviation": "
|
|
356
|
+
"time taken (ms)": "4.33",
|
|
357
|
+
"executions per sec": "230.72",
|
|
358
|
+
"sample deviation": "1.58e-4"
|
|
365
359
|
}
|
|
366
360
|
],
|
|
367
361
|
"testName": "queue"
|
|
@@ -370,15 +364,15 @@
|
|
|
370
364
|
"benchmarks": [
|
|
371
365
|
{
|
|
372
366
|
"test name": "1,000,000 push",
|
|
373
|
-
"time taken (ms)": "
|
|
374
|
-
"executions per sec": "
|
|
375
|
-
"sample deviation": "0.
|
|
367
|
+
"time taken (ms)": "47.43",
|
|
368
|
+
"executions per sec": "21.08",
|
|
369
|
+
"sample deviation": "0.02"
|
|
376
370
|
},
|
|
377
371
|
{
|
|
378
372
|
"test name": "1,000,000 push & pop",
|
|
379
|
-
"time taken (ms)": "
|
|
380
|
-
"executions per sec": "
|
|
381
|
-
"sample deviation": "0.
|
|
373
|
+
"time taken (ms)": "50.64",
|
|
374
|
+
"executions per sec": "19.75",
|
|
375
|
+
"sample deviation": "0.01"
|
|
382
376
|
}
|
|
383
377
|
],
|
|
384
378
|
"testName": "stack"
|
|
@@ -387,15 +381,15 @@
|
|
|
387
381
|
"benchmarks": [
|
|
388
382
|
{
|
|
389
383
|
"test name": "100,000 push",
|
|
390
|
-
"time taken (ms)": "
|
|
391
|
-
"executions per sec": "
|
|
392
|
-
"sample deviation": "
|
|
384
|
+
"time taken (ms)": "47.83",
|
|
385
|
+
"executions per sec": "20.91",
|
|
386
|
+
"sample deviation": "0.00"
|
|
393
387
|
},
|
|
394
388
|
{
|
|
395
389
|
"test name": "100,000 getWords",
|
|
396
|
-
"time taken (ms)": "
|
|
397
|
-
"executions per sec": "
|
|
398
|
-
"sample deviation": "0.
|
|
390
|
+
"time taken (ms)": "100.67",
|
|
391
|
+
"executions per sec": "9.93",
|
|
392
|
+
"sample deviation": "0.01"
|
|
399
393
|
}
|
|
400
394
|
],
|
|
401
395
|
"testName": "trie"
|