HTML Preparation code:
Script Preparation code:
Tests:
  • RegExp#test

  • String#indexOf

  • String#match

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    RegExp#test
    String#indexOf
    String#match

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3188.4 Safari/537.36
Chrome 62 on Windows
View result in a separate tab
Test name Executions per second
RegExp#test 5755455.0 Ops/sec
String#indexOf 561810752.0 Ops/sec
String#match 4470659.0 Ops/sec


;