Script Preparation code:
Tests:
  • regex.test

  • string.match

  • string.includes

  • string.startsWith

  • String.localeCompare

  • String ===

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    regex.test
    string.match
    string.includes
    string.startsWith
    String.localeCompare
    String ===

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0
Firefox 102 on Mac OS X 10.15
View result in a separate tab
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