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

  • String#indexOf

  • String#match

  • String#includes

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

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

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 7 years ago)
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36 OPR/40.0.2308.90
Opera 40 on Windows
View result in a separate tab
Test name Executions per second
RegExp#test 9353506.0 Ops/sec
String#indexOf 14466070.0 Ops/sec
String#match 8737213.0 Ops/sec
String#includes 13606640.0 Ops/sec