Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
regex.test 38438772.0 Ops/sec
string.match 21627918.0 Ops/sec
string.includes 9266911.0 Ops/sec
string.startsWith 9087611.0 Ops/sec
String.localeCompare 440786.9 Ops/sec
String === 1572251136.0 Ops/sec
Script Preparation code:
Tests:
  • regex.test

  • string.match

  • string.includes

  • string.startsWith

  • String.localeCompare

  • String ===


;