Why is this D code slower than C++?
Bradley Smith
digitalmars-com at baysmith.com
Sun Jan 21 22:11:54 PST 2007
The Java implementation is also faster.
time factor memory
dmc 5 sec 1.0 5 MB
java 8 sec 1.6 72 MB (Java 1.6.0 -server)
dmd 9 sec 1.8 5 MB
java 19 sec 3.8 19 MB (Java 1.6.0 -client)
However, Java uses much more memory.
All three implementations are in the attached zip.
Thanks,
Bradley
-------------- next part --------------
A non-text attachment was scrubbed...
Name: raytracer3_cpp_d_java.zip
Type: application/x-zip-compressed
Size: 31620 bytes
Desc: not available
Url : http://lists.puremagic.com/pipermail/digitalmars-d-learn/attachments/20070121/69d6df56/attachment-0001.bin
More information about the Digitalmars-d-learn
mailing list