What do you need to know about them and why? The reason that tests show that this JDK and hardware tuning is because they can (theoretically) play. What you should get from benchmarks is an idea of ββhow things will work. For the ABSOLUTE number, you will need to run it on its own code, doing its own thing.
The most important thing to know is Big O's time to perform various collections. Knowing that getting an element from an unsorted ArrayList is O (n), but getting it from a HashMap is O (1) HUGE .
If you are already using the correct selection for a given task, you are 90% there. The time when you need to worry about how fast you can, for example, receive items from the HashMap, should be quite rare.
Once you leave single-threaded land and go to multi-threaded land, you will need to start worrying about things like ConcurrentHashMap vs Collections.synchronized hashmap. Until you are multi-threaded, you just need not worry about it, and focus on which collection to use.
Upgrade to HashSet and LinkedHashSet
I have never found a use case where I need a Linked Hash Set (because if I care about the order, I have a List, if I wonder what O (1) gets, I prefer to use a HashSet. Actually, most code will use an ArrayList , HashMap or HashSet.If you need something else, you are in a "last resort" case.
bwawok
source share