4 ms·
A difference between this and the OP is that OP doesn't pass in a length, instead terminating on the first invalid character (which is the trailing null byte in
by dzaima 3y ago
A difference between this and the OP is that OP doesn't pass in a length, instead terminating on the first invalid character (which is the trailing null byte in the benchmark). Means that the array-out-of-bounds check can't be abused.
- iraqmtpizza 3y agoYeah, the methodologies aren't directly comparable (JMH is dark magic as well). For the record I used JMH 1.37