My guess is java is slow as it works really well when the JIT can optimize your code. Longer running functions will very likely outperform python.
My guess is java is slow as it works really well when the JIT can optimize your code. Longer running functions will very likely outperform python.