Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0
Firefox 149
Linux
Desktop
4 months ago
RegExp.exec()
4.5M/s
String.matchAll()
3.4M/s
View exact numbers
Test name Executions per second
RegExp.exec() 4,539,980 Ops/sec
String.matchAll() 3,381,260 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: