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

  • .indexOf

  • .includes

  • .startsWith

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Regex
    .indexOf
    .includes
    .startsWith

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Linux; Android 10; RMX1911) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Mobile Safari/537.36
Chrome Mobile 94 on Android
View result in a separate tab
Test name Executions per second
Regex 135.2 Ops/sec
.indexOf 264.7 Ops/sec
.includes 71.7 Ops/sec
.startsWith 97.7 Ops/sec