HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 10 community runs

Desktop Results:
Chrome 10 runs
optional chain
32.6M/s
lodash get with array
8.5M/s
lodash get with string
5.9M/s

Fastest: optional chain (5.6x faster)

View exact numbers
  • optional chain: 32,559,458 ops/sec
  • lodash get with array: 8,454,808 ops/sec
  • lodash get with string: 5,855,256 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 chain
    lodash get with array
    lodash get with string

    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 Edg/136.0.0.0
Chrome 136 on Windows
View result in a separate tab
optional chain
119.0M/s
lodash get with array
8.8M/s
lodash get with string
4.3M/s
View exact numbers
Test name Executions per second
optional chain 118,963,912 Ops/sec
lodash get with array 8,819,181 Ops/sec
lodash get with string 4,307,169 Ops/sec