Script Preparation code:
Tests:
  • text.includes()

  • regex.test()

  • string.match()

  • string.indexOf()

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    text.includes()
    regex.test()
    string.match()
    string.indexOf()

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 days ago)
Mozilla/5.0 (Android 14; Mobile; rv:134.0) Gecko/134.0 Firefox/134.0
Firefox Mobile 134 on Android
View result in a separate tab
Test name Executions per second
text.includes() 399774304.0 Ops/sec
regex.test() 7228724.5 Ops/sec
string.match() 4712842.5 Ops/sec
string.indexOf() 393570304.0 Ops/sec


;