Map Performance: Java vs Scala

A microbenchmark of Map.get and Set.contains performance for different JDK and Scala versions

Cover image: a dictionary page open on the word “dictionary” (reference to Map).
Cover image by pdpics from Pixabay

Benchmark Case

Benchmarks

Benchmark results for Map Lookup for different versions of JDK, Scala version 2.12
Map Lookup for different JVMs, Scala 2.12
Benchmark results for Map Lookup for different versions of JDK, Scala version 2.13
Map Lookup for different JVMs, Scala 2.13
Benchmark results for Map Lookup for different versions of Scala, openjdk-17
Map Lookup for different Scala versions, openjdk-17

Conclusion

--

--

Software developer, moved to Israel from Russia, trying to be aware of things.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Dmitry Komanov

Software developer, moved to Israel from Russia, trying to be aware of things.