heap
test nametime taken (ms)executions per secsample deviation
100,000 add6.44155.391.89e-4
100,000 add & poll31.5431.717.91e-4
rb-tree
test nametime taken (ms)executions per secsample deviation
100,000 add55.6417.973.93e-4
100,000 add randomly70.3514.210.00
100,000 get115.518.660.00
100,000 iterator27.6436.180.01
100,000 add & delete orderly120.738.280.00
100,000 add & delete randomly223.374.480.00
queue
test nametime taken (ms)executions per secsample deviation
1,000,000 push42.8723.330.01
100,000 push & shift4.87205.176.94e-4
Native JS Array 100,000 push & shift2196.840.460.19
deque
test nametime taken (ms)executions per secsample deviation
1,000,000 push23.6842.220.00
1,000,000 push & pop30.6832.600.00
1,000,000 push & shift30.4932.800.00
100,000 push & shift3.21311.512.41e-4
Native JS Array 100,000 push & shift2510.080.400.34
100,000 unshift & shift2.89346.572.98e-4
Native JS Array 100,000 unshift & shift4581.650.220.40
hash-map
test nametime taken (ms)executions per secsample deviation
1,000,000 set120.668.290.03
Native JS Map 1,000,000 set202.574.940.01
Native JS Set 1,000,000 add167.465.970.01
1,000,000 set & get115.608.650.01
Native JS Map 1,000,000 set & get265.343.770.01
Native JS Set 1,000,000 add & has167.855.960.01
1,000,000 ObjKey set & get308.733.240.03
Native JS Map 1,000,000 ObjKey set & get300.603.330.03
Native JS Set 1,000,000 ObjKey add & has270.493.700.04
trie
test nametime taken (ms)executions per secsample deviation
100,000 push45.7921.847.32e-4
100,000 getWords87.8511.380.00
avl-tree
test nametime taken (ms)executions per secsample deviation
100,000 add260.783.830.00
100,000 add randomly306.613.260.00
100,000 get140.277.130.00
100,000 iterator29.9033.450.01
100,000 add & delete orderly428.762.330.00
100,000 add & delete randomly580.741.720.00
binary-tree-overall
test nametime taken (ms)executions per secsample deviation
10,000 RBTree add5.74174.109.29e-5
10,000 RBTree add & delete randomly18.8353.101.49e-4
10,000 RBTree get0.771290.557.33e-6
10,000 AVLTree add22.6044.252.14e-4
10,000 AVLTree get10.6394.081.02e-4
10,000 AVLTree add & delete randomly44.1722.643.52e-4
directed-graph
test nametime taken (ms)executions per secsample deviation
1,000 addVertex0.119501.691.02e-6
1,000 addEdge6.18161.814.27e-4
1,000 getVertex0.052.16e+43.23e-7
1,000 getEdge23.3142.900.00
tarjan206.064.850.01
topologicalSort181.655.510.01
doubly-linked-list
test nametime taken (ms)executions per secsample deviation
1,000,000 push207.884.810.04
1,000,000 unshift214.334.670.06
1,000,000 unshift & shift185.545.390.04
1,000,000 addBefore308.663.240.08
singly-linked-list
test nametime taken (ms)executions per secsample deviation
1,000,000 push & shift202.614.940.04
10,000 push & pop219.694.550.02
10,000 addBefore247.134.050.01
priority-queue
test nametime taken (ms)executions per secsample deviation
100,000 add27.3636.559.92e-4
100,000 add & poll146.726.826.84e-4
stack
test nametime taken (ms)executions per secsample deviation
1,000,000 push39.3625.410.01
1,000,000 push & pop47.8620.890.01