Script Preparation code:
Tests:

Historical Performance Data aggregated from 8 community runs

Desktop Results:
Chrome 8 runs
Optional Chaining
124.9M/s
Lodash
6.1M/s

Fastest: Optional Chaining (20.4x faster)

View exact numbers
  • Optional Chaining: 124,919,600 ops/sec
  • Lodash: 6,134,208 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 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137 on Windows
View result in a separate tab
Optional Chaining
146.7M/s
Lodash
5.6M/s
View exact numbers
Test name Executions per second
Optional Chaining 146,743,920 Ops/sec
Lodash 5,554,770 Ops/sec