[Issue 11783] Make std.datetime unittesting faster

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Mar 6 23:48:16 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11783



--- Comment #14 from Jonathan M Davis <jmdavisProg at gmx.com> 2014-03-06 23:48:11 PST ---
> It appears to be faster now.

Fixing issue# 9584 removed the main bottlneck in the tests, so they're
considerably faster now (currently under 3 seconds on my machine). They should
still be refactored, but std.datetime is no longer the module with the slowest
unit tests. From the looks of it, std.file now "wins" at around 16 seconds.
I've been meaning for ages to rework those tests so that they're consolidated
and therefore minimize the number of file operations it does to do the same
tests (std.file is a case where putting each test after its corresponding
function and having each of the tests be independent makes them take far longer
than they would if we had one or two long unittest blocks that tested
everything together), but it's a ways down on my todo list.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list