D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 7791 - Unnecessarily slow test in the DMD test suite
Summary: Unnecessarily slow test in the DMD test suite
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All All
: P2 enhancement
Assignee: No Owner
URL:
Keywords: TestSuite
Depends on:
Blocks:
 
Reported: 2012-03-28 22:45 UTC by Don
Modified: 2020-06-19 03:35 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Don 2012-03-28 22:45:57 UTC
The file testthread2.d is by far the slowest test in the test suite; it takes 10% of the total running time, yet it is only testing a single bug (bug 3930).
It's so slow because it wasn't a fully reduced test. Now that the root cause is known, it should be possible to make a much better test.

The other notably slow test is testgc3, which is a pretty useless test, because it can't even fail! It's another 4-5% of the running time.
Comment 1 RazvanN 2020-06-19 03:35:28 UTC
I ran the tests just now.

testthread2 -> 6s
testgc3     -> 2s

On my machines, it takes approximately 10 minutes to run all the runnable tests (with -j8) so I think that we can close this now.