Script Preparation code:
Tests:
  • findIndex

  • for loop

  • sort via findindex

  • sort via for

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    findIndex
    for loop
    sort via findindex
    sort via for

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
findIndex 8590136.0 Ops/sec
for loop 10001784.0 Ops/sec
sort via findindex 3274.0 Ops/sec
sort via for 2860.8 Ops/sec