Script Preparation code:
Tests:
  • RegEx.test

  • String.includes

  • String.match

  • String Equality

  • String.indexOf

  • Regex.test no ^ and &

  • Regex.test base

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    RegEx.test
    String.includes
    String.match
    String Equality
    String.indexOf
    Regex.test no ^ and &
    Regex.test base

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.5000.0 Iron Safari/537.36
Chrome 98 on Windows 7
View result in a separate tab
Test name Executions per second
RegEx.test 3195214.8 Ops/sec
String.includes 6041590.5 Ops/sec
String.match 2136097.8 Ops/sec
String Equality 7844748.5 Ops/sec
String.indexOf 7902571.5 Ops/sec
Regex.test no ^ and & 3212215.8 Ops/sec
Regex.test base 3041943.8 Ops/sec


;