Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Linux
Desktop
2 years ago
substring and substring
9.5M/s
replace inline regex
6.8M/s
View exact numbers
Test name Executions per second
substring and substring 9,521,233 Ops/sec
replace inline regex 6,786,970 Ops/sec
Script Preparation code:
Tests: