Will Java go native?

Paul Jurczak pauljurczak at yahoo.com
Sat Sep 21 19:04:08 PDT 2013


On Thursday, 19 September 2013 at 09:48:15 UTC, Joakim wrote:
> On Thursday, 19 September 2013 at 08:26:03 UTC, Russel Winder 
> wrote:
>> Java is no longer under-performant compared to C, C++, 
>> Fortran, D, Go, Rust. Check the benchmarks.
> Interesting.  Java people have been saying this for years and 
> it's never been quite true, so I just looked up the benchmark 
> shootout to see if you're right.  It shows Java 7 doing pretty 
> well against C++ these days, roughly equivalent speed or at 
> worst half as fast:
>
> http://benchmarksgame.alioth.debian.org/u64q/benchmark.php?test=all&lang=java&data=u64q
> [...]

It doesn't do that well when single core is selected (always 
slower, 4x worst case):

http://benchmarksgame.alioth.debian.org/u64/benchmark.php?test=all&lang=java&lang2=gpp&data=u64

It means that Java VM/libraries can explore multiple cores better 
that C++.


More information about the Digitalmars-d mailing list