4 ms·
> 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 actua
by merb 9y ago
> 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