On the other hand you can't benchmark every single line of potentially problematic code and even if you could, syntetic tests are not reliable.
If by experience you know that a certain solution can be problematic and there is a different solution which has reasonable implementation costs, you should do what your experience tells you especially if fixing it after the fact would have significantly higher implementation costs.