Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/132.0.0.0 Safari/537.36
Chrome 132
Linux
Desktop
one year ago
string.replace
1.8M/s
regexp.exec
1.3M/s
regexp.matchAll
735K/s
View exact numbers
Test name Executions per second
string.replace 1,807,518 Ops/sec
regexp.exec 1,300,804 Ops/sec
regexp.matchAll 734,855 Ops/sec
Tests: