Relative performance
bearophile
bearophileHUGS at lycos.com
Tue Jun 8 17:35:04 PDT 2010
This is a small D1/D2 program, similar to a raytracer:
http://codepad.org/m3F9IJbO
I have timed it, to see the relative performance of some DMD versions (LDC is twice faster on this program).
Timings, no input, dmd compiler, best of two, seconds:
v1.061: 61
v1.061: 62 (struct spheres) [Sphere(1e5, Vec3(1e5+1,...
v2.046: 73
v2.047beta: 74
v2.047beta: 75 (__gshared spheres)
v2.047beta: 232 (enum __gshared spheres)
v2.047beta: 210 (enum spheres)
v2.047beta: 68 (struct spheres) [Sphere(1e5, Vec3(1e5+1,...
The timings are a bit strange.
Bye,
bearophile
More information about the Digitalmars-d
mailing list