atilaneves / unit-threaded

Advanced unit test framework for D
BSD 3-Clause "New" or "Revised" License
122 stars 38 forks source link

shouldFail is expensive because it generates stack traces eagerly #295

Closed John-Colvin closed 1 year ago

John-Colvin commented 1 year ago

BuiltinTestCase.test eagerly generates the stack trace string, which is quite expensive.

In my testing (SIL/lang/bin/ut), 88% of the runtime of shouldFail tests were spent in localStacktraceToString vs 12% running the actual test.