Skip to main content

Maps

caution

These benchmarks should not be used as a definitive answer to which collections are best. It's typical for different implementations to perform better for specific use cases. You are strongly encouraged to verify any results.

Also bear in mind that these numbers are in microseconds.

N = 10getputremove (absent)remove (present)
Built Map0.222.501.671.84
Dart Map0.220.410.150.22
Dartz IMap0.622.591.761.79
FIC IMap0.3134.220.3115.00
Kt Map0.2316.2510.5010.57
Ribs IMap2.239.050.328.16
Ribs MMap2.590.570.810.82
N = 100getputremove (absent)remove (present)
Built Map0.239.357.847.89
Dart Map0.230.420.150.19
Dartz IMap1.074.053.052.69
FIC IMap0.31277.030.29122.22
Kt Map0.2391.2883.1283.52
Ribs IMap3.012.151.300.92
Ribs MMap2.660.690.810.87
N = 1000getputremove (absent)remove (present)
Built Map0.2360.3455.5455.65
Dart Map0.230.410.150.23
Dartz IMap1.455.424.104.12
FIC IMap0.322439.710.291121.52
Kt Map0.24762.19724.01721.62
Ribs IMap2.9032.851.060.92
Ribs MMap2.700.740.901.02
N = 10000getputremove (absent)remove (present)
Built Map0.225198.855145.825087.75
Dart Map0.220.410.150.19
Dartz IMap1.717.185.914.97
FIC IMap0.3131593.230.3019872.02
Kt Map0.2714580.4914910.6214807.04
Ribs IMap2.8331.311.0832.54
Ribs MMap2.640.720.820.88
N = 100000getputremove (absent)remove (present)
Built Map0.2349211.7551947.3856167.00
Dart Map0.220.410.150.20
Dartz IMap2.098.967.407.37
FIC IMap0.31842721.000.30359387.00
Kt Map0.25189758.27183993.47196335.18
Ribs IMap3.6840.231.481.79
Ribs MMap2.710.750.880.90
N = 1000000getputremove (absent)remove (present)
Built Map0.23469084.00495536.80500564.00
Dart Map0.220.410.150.19
Dartz IMap2.4110.708.798.89
FIC IMap0.3110259931.500.294592665.00
Kt Map0.232334132.002469921.502452939.00
Ribs IMap3.5551.001.841.65
Ribs MMap2.660.770.860.89