Script Preparation code:
Tests:

Historical Performance Data aggregated from 17 community runs

Desktop Results:
Chrome 17 runs
Find by object keys
279K/s
Find from array using function reference
102K/s

Fastest: Find by object keys (2.7x faster)

View exact numbers
  • Find by object keys: 278,530 ops/sec
  • Find from array using function reference: 101,993 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Find from array using function reference
    Find by object keys

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Chrome 136 on Windows
View result in a separate tab
Find by object keys
901K/s
Find from array using function reference
103K/s
View exact numbers
Test name Executions per second
Find by object keys 900,923 Ops/sec
Find from array using function reference 102,846 Ops/sec