I’m not surprised by this benchmark. Java can be a bit faster than C/C++ since 2004 except with some specific kinds of algorithm, for example those benefiting the most of the vectorization (SIMD) but the shader language compiler Decora (JavaFX) uses SSE ;D