Closed John-Colvin closed 1 year ago
BuiltinTestCase.test eagerly generates the stack trace string, which is quite expensive.
BuiltinTestCase.test
In my testing (SIL/lang/bin/ut), 88% of the runtime of shouldFail tests were spent in localStacktraceToString vs 12% running the actual test.
SIL/lang/bin/ut
shouldFail
localStacktraceToString
BuiltinTestCase.test
eagerly generates the stack trace string, which is quite expensive.In my testing (
SIL/lang/bin/ut
), 88% of the runtime ofshouldFail
tests were spent inlocalStacktraceToString
vs 12% running the actual test.