Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36
Chrome 134
Mac OS X 10.15.7
Desktop
one year ago
substring and substring
11.9M/s
replace inline regex
10.2M/s
View exact numbers
Test name Executions per second
substring and substring 11,901,388 Ops/sec
replace inline regex 10,249,889 Ops/sec
Script Preparation code:
Tests: