3 ms·
It's still an interesting table. I was surprised that Java is 10x faster than Python. I would have expected initializing the JVM would be similarly complex to i
by nielsole 7y ago
It's still an interesting table. I was surprised that Java is 10x faster than Python. I would have expected initializing the JVM would be similarly complex to initializing the Python Interpreter.
- cycloptic 7y agoMy point is that it's not clear from the article why that is the case.
- giantrobot 7y agoThe author doesn't state the Java version but more recent version JREs (9+ IIRC) start up way faster than older versions. I'd imagine a JRE's launch time is heavily influenced by disk cache. A warm launch ends up way faster than a cold launch with the tens of megabytes of classes in RAM means the warm launch basically loads the program's class file from disk.
- kick 7y agoHe literally does list the Java version, though...? OpenJDK 11.0.5 JRE
- giantrobot 7y agoWell I guess I missed it.
- zamadatix 7y agoWhen you run "python" you're most likely running CPython, an interpreter written in C that was 2.5x faster than Java according to this table. You're looking at the numbers for PyPy, an alternative Python implementation written in Python-ish compiled to C which provides a JIT compiler for Python. A bit more understandable why that initializes slowly (though runs faster for longer programs).