Run details:
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
Mac OS X 10.15.7
Desktop
one year ago
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
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)


;