Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> If you run a simple java app without dependencies and only displaying "Hello world" it will run in about 1s on modern hardware.

> time for x in $(seq 1 100); do ./helloworld.py ; done

    real    0m1.240s
    user    0m0.902s
    sys     0m0.343s
That's reasonably fast.

Java for comparison:

> time for x in $(seq 1 100); do java Hw; done

    real    0m4.952s
    user    0m4.051s
    sys     0m1.071s
And I had to compile java first. Still, I expected worse from java TBH.


Out of curiosity which Java? OpenJDK or Oracle or IBM?


     > java -version
     java version "1.7.0_72"
     Java(TM) SE Runtime Environment (build 1.7.0_72-b14)
     Java HotSpot(TM) 64-Bit Server VM (build 24.72-b04, mixed mode)


Thanks. I would have figured hot spot to be better.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: