Script Preparation code:
Tests:
  • small array - OR

  • small array - indexOf

  • large array - OR

  • large array - indexOf

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    small array - OR
    small array - indexOf
    large array - OR
    large array - indexOf

    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 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89 on Linux
View result in a separate tab
Test name Executions per second
small array - OR 39738.8 Ops/sec
small array - indexOf 38165.5 Ops/sec
large array - OR 38013.3 Ops/sec
large array - indexOf 43323.6 Ops/sec