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

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: 18 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0
Firefox 88 on Windows
View result in a separate tab
Test name Executions per second
RegExp#test 9670473.0 Ops/sec
String#indexOf 16727670.0 Ops/sec
String#match 5802579.0 Ops/sec