4 ms·
> real 0m0.248s A quarter of a second to start up the VM, run some code, and exit again is actually pretty steep compared to typical interpreted and compiled l
by ekidd 10y ago
> real 0m0.248s
A quarter of a second to start up the VM, run some code, and exit again is actually pretty steep compared to typical interpreted and compiled languages. Among other things, this means that you can't really call Java executables from a loop in a shell script.
For comparison purposes, both Ruby and Rust will show between "0.00 elapsed" and "0.02 elapsed" for a simple "Hello, world" program on my laptop.
- Orangeair 10y agoThat's just Hello World, though. He said his app was parsing a 20 MB file. To do a fair comparison, with your example, I just compiled and ran Hello World in Java on my machine and got this: real 0.06 user 0.06 sys 0.01
- fnord123 10y agoHere you go: https://bitbucket.org/ewanhiggs/csv-game https://bitbucket.org/ewanhiggs/csv-game
- asmosoinio 10y agoThe parent did write "parsing a 20 MB file". So not a hello world.
- pvdebbe 10y ago<insert joke about Java being overly verbose>