Tests:
  • Destructuring assignment (undefined)

  • Optional chaining (undefined)

  • Destructuring assignment (null)

  • Optional chaining (null)

  • Destructuring assignment (value)

  • Optional chaining (value)

  • Destructuring assignment (no property)

  • Optional chaining (no property)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Destructuring assignment (undefined)
    Optional chaining (undefined)
    Destructuring assignment (null)
    Optional chaining (null)
    Destructuring assignment (value)
    Optional chaining (value)
    Destructuring assignment (no property)
    Optional chaining (no property)

    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/114.0.0.0 Safari/537.36
Chrome 114 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Destructuring assignment (undefined) 18956984.0 Ops/sec
Optional chaining (undefined) 18759004.0 Ops/sec
Destructuring assignment (null) 1051506688.0 Ops/sec
Optional chaining (null) 1052629376.0 Ops/sec
Destructuring assignment (value) 1054708288.0 Ops/sec
Optional chaining (value) 1052928320.0 Ops/sec
Destructuring assignment (no property) 1054414912.0 Ops/sec
Optional chaining (no property) 1053094720.0 Ops/sec


;