Posted on

New JMH tests and faster forEach

The popular Java Microbenchmark Harness performance testing tool is supported now with an AirConcurrentMap test specifically for it. The test shows basically the same high performance as the original ones included in the distribution, but now the JMH harness shows the performance in a more familiar and simpler way. This lends further support to our dramatic performance claims. The test also writes a file ‘memoryReport.txt’ which shows the memory efficiency differences per entry for the compared Maps.

Also, the Map.forEach() method is now much faster by being supported in a way that uses the AirConcurrentMap native MapVisitor technique internally and transparently. Now forEach is almost as fast as MapVisitor.  Much existing code will be many times faster without any effort other than changing the Map constructors. The higher performance can be seen in the new JMH tests. The performance increase starts at about 1K Entries and becomes very significant above about 10K entries, finally becoming about 3 to 5 times.