[SR-4373] CheckResults in benchmarks always composes error message #46952
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
performance
Additional Detail from JIRA
md5: 6c90aed7c80140d657ffe18e11de6125
Issue Description:
I was playing around with profiling benchmarks (Suffix.swift) and I’ve noticed that for large N, the tight loops were dominated by String interpolation instead of whatever the test was supposed to test. It looks like the
CheckResults
function always constructs the error message.I guess we should redefine it with
@autoclosure
:I’ve taken the liberty to remove default value for message, all existing tests provide it and aborting without it is not very useful anyway.
The text was updated successfully, but these errors were encountered: