[phobos] Time taken for running unit tests

Jonathan M Davis jmdavisProg at gmx.com
Wed Sep 28 01:30:33 PDT 2011


On Monday, September 26, 2011 11:37:30 Don Clugston wrote:
> I think we need to have a strategy for managing the amount of time
> required for running the unittests. Currently, on Windows, the time
> for all compiler tests + phobos tests is one hour.h

Wow. Your machine must not be particularly new. Mine (a Phenom II X6) manages 
to compile and run the Phobos unit tests on Windows - in Virtual Box - in 
about 8 minutes and 14 seconds. In Linux 64, on the other hand, they take 
about 3 and half minutes (though that includes both the debug and release 
builds, and I'm not sure that Windows does, so the disparity is likely that 
much greate). So, the differences in how long it takes on my machine and your 
machine are pretty large - larger than I would have expected vs a slower 
machine, but maybe I shouldn't be surprised.

Interestingly enough though, the dmd build that I had on Windows initially 
(which was from towards the beginning of this month) before I updated today 
took just under 6 minutes. So, the changes since then (probably the GC stuff) 
made it take about a third longer than before.

Regardless, dmd's performance obviously needs to be improved, and there would 
be a significant speed gain in redoing the Windows unit test build to be split 
up like the Linux build.

- Jonathan M Davis


More information about the phobos mailing list