Why Java (server VM) is faster than D?

Iain Buclaw via Digitalmars-d digitalmars-d at puremagic.com
Mon Aug 3 09:37:14 PDT 2015


On 3 August 2015 at 18:27, aki via Digitalmars-d <
digitalmars-d at puremagic.com> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20150803/fcb80407/attachment-0001.html>


More information about the Digitalmars-d mailing list