Language Shootout
Dan
murpsoft at hotmail.com
Tue Mar 27 14:28:58 PDT 2007
Wow...
The pages actually are quite different than the last time I saw them. Maybe someone recently submitted some code, or maybe, yeah their site was broken?
Regardless, it shows that D's 2.2x slower than GCC (and GDC?) on recursion, which is bad. I would guess that the function call overhead alone is sufficient to taint the benchmarks away in C's favor.
Also, yeah, we probably should have a class-less implementation of everything if we care about speed.
Classes are inefficient, and unnecessary IMHO - structs can have static methods and constructors/destructors too. Only remaining thing is inheritance and interfaces.
I learned about the -cov feature. : )
Lovely!
More information about the Digitalmars-d
mailing list