Execution speed comparison between Scala and Java 8


Some time ago I read article about Scala and Java comparison (see link link ) and started to think about performance.
Both languages are executed at JVM but are they have the same statistics, for example with simple operations on big arrays?
To check that I prepared simple one class Java and Scala program and executed it on my laptop.
To be honest I was surprised that Java 8 is much more faster than Scala.
The code You could see at my github: Java vs Scala performance comparison code ( link )
The results are presented below:

Maybe Scala is good choice while You think about thread safety but for fast simple business logic processing application java 8 is better.

Best regards

Kategorie Java