Why Java (server VM) is faster than D?

Dmitry Olshansky via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 3 09:31:04 PDT 2015


On 03-Aug-2015 19:27, aki wrote:
> When I was trying to port some Java program to D,
> I noticed Java is faster than D.
> I made a simple bench mark test as follows.
> Then, I was shocked with the result.
>
> test results on Win8 64bit (smaller is better)
> Java(1.8.0,64bit,server): 0.677
> C++(MS vs2013): 2.141
> C#(MS vs2013): 2.220
> D(DMD 2.067.1): 2.448
> D(GDC 4.9.2/2.066): 2.481
> Java(1.8.0,32bit,client): 3.060
>
> Does anyone know the magic of Java?
>
> Thanks, Aki.
>

Devirtualization? HotSpot is fairly aggressive in that regard.


-- 
Dmitry Olshansky


More information about the Digitalmars-d mailing list