Script Preparation code:
Tests:
  • regexp .test()

  • string .match()

  • indexOf === 0

  • string .startsWith()

  • Equality

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    regexp .test()
    string .match()
    indexOf === 0
    string .startsWith()
    Equality

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 months ago)
Mozilla/5.0 (Android 14; Mobile; rv:143.0) Gecko/143.0 Firefox/143.0
Firefox Mobile 143 on Android
View result in a separate tab
Test name Executions per second
regexp .test() 16782878.0 Ops/sec
string .match() 9977881.0 Ops/sec
indexOf === 0 970002048.0 Ops/sec
string .startsWith() 1055339648.0 Ops/sec
Equality 18032586.0 Ops/sec