diff --git a/README.md b/README.md
index c6f557b..c18dbc5 100644
--- a/README.md
+++ b/README.md
@@ -574,6 +574,12 @@ avl2.print();
View |
+Hash Map |
+ |
+ |
+View |
+
+
Linked List |
|
|
@@ -782,52 +788,52 @@ avl2.print();
[//]: # (No deletion!!! Start of Replace Section)
avl-tree
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 add randomly | 30.05 | 33.28 | 6.97e-4 |
10,000 add & delete randomly | 72.61 | 13.77 | 0.00 |
10,000 addMany | 35.18 | 28.43 | 9.64e-4 |
10,000 get | 30.02 | 33.31 | 5.36e-4 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 add randomly | 34.57 | 28.93 | 0.01 |
10,000 add & delete randomly | 80.91 | 12.36 | 0.02 |
10,000 addMany | 38.81 | 25.76 | 0.01 |
10,000 get | 32.58 | 30.69 | 0.01 |
binary-tree
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000 add randomly | 14.72 | 67.92 | 1.85e-4 |
1,000 add & delete randomly | 18.55 | 53.90 | 3.16e-4 |
1,000 addMany | 13.40 | 74.62 | 0.00 |
1,000 get | 18.70 | 53.47 | 3.85e-4 |
1,000 has | 19.28 | 51.87 | 0.00 |
1,000 dfs | 158.14 | 6.32 | 0.01 |
1,000 bfs | 56.98 | 17.55 | 8.96e-4 |
1,000 morris | 260.83 | 3.83 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000 add randomly | 14.61 | 68.46 | 0.00 |
1,000 add & delete randomly | 21.50 | 46.51 | 0.01 |
1,000 addMany | 15.57 | 64.22 | 0.01 |
1,000 get | 32.93 | 30.36 | 0.02 |
1,000 has | 26.55 | 37.67 | 0.02 |
1,000 dfs | 181.64 | 5.51 | 0.03 |
1,000 bfs | 94.85 | 10.54 | 0.05 |
1,000 morris | 316.07 | 3.16 | 0.04 |
bst
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 add randomly | 26.61 | 37.58 | 6.20e-4 |
10,000 add & delete randomly | 68.64 | 14.57 | 0.00 |
10,000 addMany | 25.65 | 38.99 | 8.34e-5 |
10,000 get | 33.11 | 30.21 | 0.02 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 add randomly | 27.63 | 36.19 | 0.01 |
10,000 add & delete randomly | 73.15 | 13.67 | 0.02 |
10,000 addMany | 27.44 | 36.44 | 0.01 |
10,000 get | 37.03 | 27.01 | 0.02 |
rb-tree
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add | 85.61 | 11.68 | 0.00 |
100,000 add & delete randomly | 214.04 | 4.67 | 0.01 |
100,000 getNode | 154.49 | 6.47 | 4.10e-4 |
100,000 add & iterator | 115.20 | 8.68 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add | 113.44 | 8.82 | 0.02 |
100,000 add & delete randomly | 283.31 | 3.53 | 0.03 |
100,000 getNode | 89.35 | 11.19 | 0.01 |
100,000 add & iterator | 143.95 | 6.95 | 0.03 |
comparison
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
SRC PQ 10,000 add | 0.16 | 6447.35 | 3.77e-5 |
CJS PQ 10,000 add | 0.15 | 6865.39 | 5.18e-6 |
MJS PQ 10,000 add | 0.58 | 1737.03 | 1.95e-5 |
SRC PQ 10,000 add & pop | 3.44 | 290.59 | 6.14e-5 |
CJS PQ 10,000 add & pop | 3.43 | 291.48 | 5.86e-5 |
MJS PQ 10,000 add & pop | 4.29 | 233.18 | 1.71e-4 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
SRC PQ 10,000 add | 0.16 | 6180.55 | 3.37e-5 |
CJS PQ 10,000 add | 0.17 | 6004.31 | 4.09e-5 |
MJS PQ 10,000 add | 0.66 | 1512.95 | 1.66e-4 |
SRC PQ 10,000 add & pop | 3.89 | 256.83 | 7.53e-4 |
CJS PQ 10,000 add & pop | 4.02 | 248.66 | 0.00 |
MJS PQ 10,000 add & pop | 3.78 | 264.62 | 8.38e-4 |
directed-graph
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000 addVertex | 0.10 | 9639.13 | 3.31e-6 |
1,000 addEdge | 6.21 | 161.12 | 2.90e-4 |
1,000 getVertex | 0.05 | 2.13e+4 | 1.42e-6 |
1,000 getEdge | 27.34 | 36.57 | 0.01 |
tarjan | 228.62 | 4.37 | 0.01 |
tarjan all | 241.47 | 4.14 | 0.05 |
topologicalSort | 193.23 | 5.18 | 0.02 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000 addVertex | 0.12 | 8625.55 | 2.88e-5 |
1,000 addEdge | 8.52 | 117.35 | 0.00 |
1,000 getVertex | 0.05 | 1.92e+4 | 1.11e-5 |
1,000 getEdge | 20.83 | 48.02 | 0.00 |
tarjan | 195.71 | 5.11 | 0.02 |
tarjan all | 191.98 | 5.21 | 0.02 |
topologicalSort | 155.83 | 6.42 | 0.03 |
hash-map
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 set | 116.85 | 8.56 | 0.04 |
1,000,000 Map set | 216.07 | 4.63 | 0.02 |
1,000,000 Set add | 173.91 | 5.75 | 0.01 |
1,000,000 set & get | 124.87 | 8.01 | 0.04 |
1,000,000 Map set & get | 323.10 | 3.10 | 0.04 |
1,000,000 Set add & has | 180.32 | 5.55 | 0.02 |
1,000,000 ObjKey set & get | 335.51 | 2.98 | 0.07 |
1,000,000 Map ObjKey set & get | 310.64 | 3.22 | 0.06 |
1,000,000 Set ObjKey add & has | 271.15 | 3.69 | 0.05 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 set | 129.78 | 7.71 | 0.05 |
1,000,000 Map set | 276.67 | 3.61 | 0.03 |
1,000,000 Set add | 239.70 | 4.17 | 0.04 |
1,000,000 set & get | 143.96 | 6.95 | 0.04 |
1,000,000 Map set & get | 371.31 | 2.69 | 0.10 |
1,000,000 Set add & has | 247.24 | 4.04 | 0.05 |
1,000,000 ObjKey set & get | 396.42 | 2.52 | 0.06 |
1,000,000 Map ObjKey set & get | 411.40 | 2.43 | 0.10 |
1,000,000 Set ObjKey add & has | 357.45 | 2.80 | 0.05 |
heap
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add & pop | 79.43 | 12.59 | 0.00 |
100,000 add & dfs | 34.78 | 28.75 | 0.00 |
10,000 fib add & pop | 356.18 | 2.81 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add & pop | 88.96 | 11.24 | 0.02 |
100,000 add & dfs | 38.81 | 25.77 | 0.01 |
10,000 fib add & pop | 399.77 | 2.50 | 0.01 |
doubly-linked-list
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 222.75 | 4.49 | 0.05 |
1,000,000 unshift | 235.70 | 4.24 | 0.06 |
1,000,000 unshift & shift | 179.26 | 5.58 | 0.04 |
1,000,000 insertBefore | 340.92 | 2.93 | 0.07 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 264.62 | 3.78 | 0.08 |
1,000,000 unshift | 264.00 | 3.79 | 0.05 |
1,000,000 unshift & shift | 211.89 | 4.72 | 0.07 |
1,000,000 insertBefore | 467.62 | 2.14 | 0.22 |
singly-linked-list
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 push & pop | 213.00 | 4.69 | 0.01 |
10,000 insertBefore | 248.65 | 4.02 | 0.01 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 push & pop | 260.65 | 3.84 | 0.04 |
10,000 insertBefore | 283.61 | 3.53 | 0.02 |
max-priority-queue
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 refill & poll | 9.15 | 109.23 | 4.05e-4 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
10,000 refill & poll | 10.29 | 97.16 | 0.00 |
priority-queue
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add & pop | 102.30 | 9.78 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 add & pop | 117.05 | 8.54 | 0.02 |
deque
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 14.58 | 68.59 | 1.47e-4 |
1,000,000 push & pop | 23.44 | 42.67 | 1.85e-4 |
1,000,000 push & shift | 24.51 | 40.80 | 1.39e-4 |
1,000,000 unshift & shift | 22.78 | 43.91 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 15.96 | 62.68 | 0.00 |
1,000,000 push & pop | 25.90 | 38.61 | 0.01 |
1,000,000 push & shift | 26.33 | 37.98 | 0.00 |
1,000,000 unshift & shift | 24.90 | 40.16 | 0.00 |
queue
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 39.36 | 25.41 | 0.01 |
1,000,000 push & shift | 81.81 | 12.22 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 44.53 | 22.46 | 0.01 |
1,000,000 push & shift | 92.57 | 10.80 | 0.02 |
stack
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 38.89 | 25.72 | 0.00 |
1,000,000 push & pop | 44.21 | 22.62 | 0.01 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
1,000,000 push | 59.07 | 16.93 | 0.02 |
1,000,000 push & pop | 52.68 | 18.98 | 0.02 |
trie
-
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 push | 44.22 | 22.61 | 0.00 |
100,000 getWords | 89.31 | 11.20 | 0.00 |
+
test name | time taken (ms) | executions per sec | sample deviation |
---|
100,000 push | 68.45 | 14.61 | 0.02 |
100,000 getWords | 134.22 | 7.45 | 0.04 |
[//]: # (No deletion!!! End of Replace Section)
diff --git a/package.json b/package.json
index 2f013da..9e67c9e 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "data-structure-typed",
- "version": "1.48.1",
+ "version": "1.48.2",
"description": "Data Structures of Javascript & TypeScript. Heap, Binary Tree, RedBlack Tree, Linked List, Deque, Trie, HashMap, Directed Graph, Undirected Graph, Binary Search Tree(BST), AVL Tree, Priority Queue, Graph, Queue, Tree Multiset, Singly Linked List, Doubly Linked List, Max Heap, Max Priority Queue, Min Heap, Min Priority Queue, Stack.",
"main": "dist/cjs/index.js",
"module": "dist/mjs/index.js",