Script Preparation code:
Tests:
  • unsorted sorting via indexOf lookup

  • map then sort

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    unsorted sorting via indexOf lookup
    map then sort

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Linux; Android 12; M2102J20SG) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.5481.192 Mobile Safari/537.36 OPR/74.1.3922.71199
Opera Mobile 74 on Android
View result in a separate tab
Test name Executions per second
unsorted sorting via indexOf lookup 752.0 Ops/sec
map then sort 14562.0 Ops/sec