On 3 August 2015 at 18:27, aki via Digitalmars-d <
[email protected]> 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.
>
>
I have read somewhere (or maybe heard) that Java VM is able to cache and
possibly remove/inline dynamic dispatches on the fly.  This is a clear win
for VM languages over native compiled.

Iain.

Reply via email to