by zestyping · 6y ago · 0 comments
python -c print 'hello' starts up and shuts down an entire Python interpreter in less than 50 ms on my machine, whereas the equivalent Java program never takes less than 120 ms. That seems pretty sad for a language that's had at least an order of magnitude more resources thrown at it.
Then you must be using an old version of Java.
(Although I see now that the comparison disabled CDS on Java 8, so the actual improvement is perhaps not as large as it seemed.)
edit: and as I mentioned above, the HotSpot VM is specifically, explicitly optimized for long running applications.