Why is D slower than LuaJIT?
Andrei Alexandrescu
SeeWebsiteForEmail at erdani.org
Thu Dec 23 06:09:20 PST 2010
On 12/22/10 11:40 PM, Brad Roberts wrote:
> Since the timing code isn't here, I'm assuming you guys are doing the
> testing around the whole app. While that might be interesting, it's
> hiding an awfully large and important difference, application startup
> time.
>
> C has very little, D quite a bit more, and I don't know what Lua looks
> like there. If the goal is to test this math code, you'll need to
> separate the two.
>
> At this point, I highly suspect you're really measuring the runtime costs.
One thing I didn't mention is that I also measured with 10x the counter
limit. That brings the run time to seconds, and the relative difference
persists. So application startup time is negligible in this case.
Andrei
More information about the Digitalmars-d
mailing list