Are there any HashMap implementations that expose hook methods for profiling Map performance (average chain length, best / worst / average access time, #rehashes, etc.).
It seems like using HashMap and “hoping for the best” regarding O (1) access time is pretty common without analyzing if this is true, but I would like to measure performance at runtime (at least during development), that's why that hooks with JMX or profiling software will also be good.
Also, does anyone know about HashMap implementations where chains are based on binary trees instead of linked lists?
Thanks in advance.
source
share