On 03/18/2013 09:30 PM, Jonathan M Davis wrote:
Can someone look into std.file's unittests. They use 60% (32s/50s) of
> >>the unittest RUNtime on my machine.
> >
> >My first guess would be that you're running a different OS from Walter and
> >that OS-specific code counts as not being run when you run it on a
> >different OS.
Code that is statically compiled out is not counted as executable code by
the coverage analyzer.

Sorry for the misunderstanding, but I really meant runtime as in time.
It's great that we're striving for more unittest coverage but we should keep an eye on the time it takes to run them. So I ran the executables with /bin/time and std.file accounts for 60% of the total runtime (not including compilation). Even though file IO is notoriously slow this seems excessive.

https://github.com/D-Programming-Language/phobos/pull/653

Reply via email to