* https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
* https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
Any speed difference between the two is because of a combination of
- developers spending less effort on making it fast
- differences in the virtual machines instruction set
- differences in the languages that make one harder to run fast
I think/guess the first is the major reason, but the instruction set may matter, too. The last one has at most a minor impact.
A reason developers spend less time making the CPython interpreter faster is that you can relatively easily make ‘python’ even faster by making it call C code.
Because CPython itself is very slow, Java runs circles around it on most benchmarks you'll find such as this one[1] from Debian. If you observe the computation time taken, the order of magnitude of difference between Java and Python programs is just preposterous!
[1]: https://benchmarksgame-team.pages.debian.net/benchmarksgame/...
PyPy shows Python could have had a JIT (https://www.pypy.org/)