News for hackers. Stuff that matters.
Re:Python startup time: milliseconds matter by TylerE on Wednesday May 02, 2018 @01:21PM (#16979116)
Performance and startup performance are really seperate things.

For instance, for many many CLI tasks a python script will be many times faster than a Java tool, just due to the JVM startup. It doesn't really matter if the Java would even run INSTANTLY... the JVM startup time just kills speed for small CLI invocations.

Re:Python startup time: milliseconds matter by merb on Wednesday May 02, 2018 @03:43PM (#16980479)
> It doesn't really matter if the Java would even run INSTANTLY... the JVM startup time just kills speed for small CLI invocations

luckily these problems actually do get addressed slowly via AoT/Graal and Substrate VM.

Here comparing a simple hello world program one is written in java and uses Substrate VM to create a binary and compare it with python:

$ time ./hello.py hello world!

real 0m0.041s user 0m0.017s sys 0m0.023s

$ time ./hello.main hello world!

real 0m0.019s user 0m0.008s sys 0m0.010s

of course the comparsion is unfair