Le 19/12/2011 00:26, Andrei Alexandrescu a écrit : > On 12/18/11 5:15 PM, Somedude wrote: >> Here is the kind of performance you can expect from the JVM: a factor of >> 2.5x to native C++. >> That's from the Box2D physics game engine. >> >> http://blog.j15r.com/2011/12/for-those-unfamiliar-with-it-box2d-is.html >> >> This is very much in line with what the The Computer Language Benchmark >> Game gives (and I've come to realize by experience that it's actually >> quite accurate when evaluating maximum speed for languages) and very >> much what I've come to expect in practice. > > 2.5x-3x in speed is the number that I've seen most aired. I'm not sure > about memory consumption. > > Andrei
It's very dependant on how you program of course, but I'd say the ballpark is usually at least an order of magnitude more. Java wastes a LOT of memory.
