FastUtils vs Eclipse Collection
What is FastUtils?
This is a collection framework that provides type-specific maps, list’s and queues with less memory and quick collection access. Since this collection extends standard List and Map i.e java.utils.collection it is very easier to access the same in your java library as shown below:
List:
IntArrayList integers = new IntArrayList();
Maps:
Int2ObjectOpenHashMap<Object> map = new Int2ObjectOpenHashMap<>();
What is Eclipse Collection?
Eclipse collection was developed in a similar fashion to FastUtils which reduces the memory footprint of the collection framework. This also extends standard java collections like lists and maps. Some examples of its usage are shown below:
List:
FastList<Integer> fastList = new FastList<>();
Maps:
IntObjectHashMap<Object> map = IntObjectHashMap.newMap();
Now we will see which collection is better among each other and they are better by how much compared to standard java collections.
To accomplish this we used the below code for collection with collection class mentioned in the table shown below i.e (IntArrayList, Int2IntOpenHashMap).
Benchmarking Table:

Now you can see in the List table FastUtils scored highest ops/sec with a data size of 100 thousand records but this gets slow when records reach 1 million. Similarly with maps Eclipse collection gives better performance in all the 3 data sizes.
System Info: Intel Core i7 9th Generation, 16 GB RAM
Benchmarking Tool: JMH (https://github.com/eugenp/tutorials/tree/master/jmh)
Happy Reading!!