Why is D slower than LuaJIT?

bearophile bearophileHUGS at lycos.com
Wed Dec 22 18:26:25 PST 2010


Andrei:

> As this test essentially measures the performance of 
> iota and reduce, it would be hasty to generalize the assessment. 

>From other tests I have seen that often FP-heavy code is faster with Lua-JIT than with D-DMD. But on average the speed difference is much less than 10 times, generally no more than 2 times.

One benchmark, Lua and D code (both OOP and C-style included, plus several manually optimized D versions):
http://tinyurl.com/yeo2g8j

Bye,
bearophile


More information about the Digitalmars-d mailing list