heap
test nametime taken (ms)executions per secsample deviation
100,000 add7.51133.171.36e-4
100,000 add & poll44.2522.600.00
rb-tree
test nametime taken (ms)executions per secsample deviation
100,000 add76.9812.990.00
100,000 add randomly80.9612.350.00
100,000 get111.728.950.00
100,000 iterator29.5833.810.00
100,000 add & delete orderly153.216.530.00
100,000 add & delete randomly233.264.290.00
queue
test nametime taken (ms)executions per secsample deviation
1,000,000 push42.1823.710.01
100,000 push & shift5.16193.667.47e-4
Native JS Array 100,000 push & shift2386.290.420.30
deque
test nametime taken (ms)executions per secsample deviation
1,000,000 push23.5942.400.00
1,000,000 push & pop31.9331.320.00
1,000,000 push & shift33.1230.190.00
100,000 push & shift3.50285.579.51e-4
Native JS Array 100,000 push & shift2211.260.450.34
100,000 unshift & shift3.41292.895.52e-4
Native JS Array 100,000 unshift & shift4343.810.230.25
hash-map
test nametime taken (ms)executions per secsample deviation
1,000,000 set259.743.850.07
Native JS Map 1,000,000 set208.354.800.02
Native JS Set 1,000,000 add167.665.960.01
1,000,000 set & get260.463.840.04
Native JS Map 1,000,000 set & get265.093.770.02
Native JS Set 1,000,000 add & has169.155.910.01
1,000,000 ObjKey set & get317.233.150.04
Native JS Map 1,000,000 ObjKey set & get304.843.280.04
Native JS Set 1,000,000 ObjKey add & has278.303.590.05
trie
test nametime taken (ms)executions per secsample deviation
100,000 push43.9322.765.95e-4
100,000 getWords82.1812.170.00
avl-tree
test nametime taken (ms)executions per secsample deviation
100,000 add275.723.630.00
100,000 add randomly332.353.010.00
100,000 get129.567.720.00
100,000 iterator32.0331.220.01
100,000 add & delete orderly447.872.230.00
100,000 add & delete randomly605.401.650.03
binary-tree-overall
test nametime taken (ms)executions per secsample deviation
10,000 RBTree add randomly6.91144.821.13e-4
10,000 RBTree get randomly9.08110.147.72e-5
10,000 RBTree add & delete randomly18.9752.718.49e-4
10,000 AVLTree add randomly24.9740.054.34e-4
10,000 AVLTree get randomly9.95100.470.00
10,000 AVLTree add & delete randomly45.9621.765.77e-4
directed-graph
test nametime taken (ms)executions per secsample deviation
1,000 addVertex0.109730.421.39e-6
1,000 addEdge6.01166.329.47e-5
1,000 getVertex0.042.59e+43.52e-7
1,000 getEdge23.8042.030.00
tarjan215.664.640.01
topologicalSort187.855.320.00
doubly-linked-list
test nametime taken (ms)executions per secsample deviation
1,000,000 push197.455.060.03
1,000,000 unshift214.024.670.08
1,000,000 unshift & shift198.975.030.05
1,000,000 addBefore315.443.170.05
singly-linked-list
test nametime taken (ms)executions per secsample deviation
1,000,000 push & shift196.915.080.04
10,000 push & pop222.294.500.01
10,000 addBefore248.874.020.01
priority-queue
test nametime taken (ms)executions per secsample deviation
100,000 add27.6936.118.96e-4
100,000 add & poll75.3813.276.45e-4
stack
test nametime taken (ms)executions per secsample deviation
1,000,000 push39.1925.520.00
1,000,000 push & pop45.2422.100.00