HTML Preparation code:
Script Preparation code:
Tests:
  • ^test Regex

  • .startsWith

  • .search(RegExp)

  • .indexOf

  • RegExp # test

  • .includes

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    ^test Regex
    .startsWith
    .search(RegExp)
    .indexOf
    RegExp # test
    .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: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36
Chrome 95 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
^test Regex 418.4 Ops/sec
.startsWith 500.2 Ops/sec
.search(RegExp) 257.6 Ops/sec
.indexOf 7239.9 Ops/sec
RegExp # test 295.9 Ops/sec
.includes 319.9 Ops/sec