Script Preparation code:
Tests:

Historical Performance Data aggregated from 21 community runs

Desktop Results:
Chrome 21 runs
Optional Chaining
4.3M/s
Lodash
2.8M/s

Fastest: Optional Chaining (1.5x faster)

View exact numbers
  • Optional Chaining: 4,290,982 ops/sec
  • Lodash: 2,778,864 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
    Optional Chaining
    Lodash

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Optional Chaining
94.1M/s
Lodash
6.4M/s
View exact numbers
Test name Executions per second
Optional Chaining 94,085,704 Ops/sec
Lodash 6,352,210 Ops/sec