Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
RegEx.test 14457567.0 Ops/sec
String.includes 20808482.0 Ops/sec
String.match 4148462.2 Ops/sec
String.matchAll 10820200.0 Ops/sec
String.indexOf 913494848.0 Ops/sec
Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • String.matchAll

  • String.indexOf


;