Script Preparation code:
Tests:
  • [MATCH] check str[i] before startsWith

  • [MATCH] startsWith immediatly

  • [NOT MATCH] check str[i] before startsWith

  • [NOT MATCH] startsWith immediatly

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    [MATCH] check str[i] before startsWith
    [MATCH] startsWith immediatly
    [NOT MATCH] check str[i] before startsWith
    [NOT MATCH] startsWith immediatly

    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 (Windows NT 10.0; Win64; x64; rv:95.0) Gecko/20100101 Firefox/95.0
Firefox 95 on Windows
View result in a separate tab
Test name Executions per second
[MATCH] check str[i] before startsWith 50734710.0 Ops/sec
[MATCH] startsWith immediatly 50918310.0 Ops/sec
[NOT MATCH] check str[i] before startsWith 1400821000.0 Ops/sec
[NOT MATCH] startsWith immediatly 52352710.0 Ops/sec