Java being fastest at running Java-style code is not too surprising. My guess is that Java is "hotspot" inlining the calls to `bar`, getting rid of the dynamic dispatch overhead. I think that for real systems D will generally beat out Java across the board, but not if the D version is a straight up transliteration of the Java--expect Java to be the best at running Java code.
Re: Why Java (server VM) is faster than D?
Justin Whear via Digitalmars-d Mon, 03 Aug 2015 09:36:58 -0700
- Why Java (server VM) is faster than... aki via Digitalmars-d
- Re: Why Java (server VM) is fa... John Colvin via Digitalmars-d
- Re: Why Java (server VM) is fa... Justin Whear via Digitalmars-d
- Re: Why Java (server VM) is fa... Dmitry Olshansky via Digitalmars-d
- Re: Why Java (server VM) i... Steven Schveighoffer via Digitalmars-d
- Re: Why Java (server V... John Colvin via Digitalmars-d
- Re: Why Java (serv... Adam D. Ruppe via Digitalmars-d
- Re: Why Java ... John Colvin via Digitalmars-d
- Re: Why Java (serv... aki via Digitalmars-d
- Re: Why Java ... Etienne Cimon via Digitalmars-d
- Re: Why Java (server VM) is fa... Iain Buclaw via Digitalmars-d
- Re: Why Java (server VM) is fa... John Colvin via Digitalmars-d
- Re: Why Java (server VM) is fa... Adam D. Ruppe via Digitalmars-d
