Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Chrome 97
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
Destructuring assignment (undefined) 8906162.0 Ops/sec
Optional chaining (undefined) 8895812.0 Ops/sec
Destructuring assignment (null) 920440896.0 Ops/sec
Optional chaining (null) 915087872.0 Ops/sec
Destructuring assignment (value) 847182080.0 Ops/sec
Optional chaining (value) 786948928.0 Ops/sec
Destructuring assignment (no property) 849456448.0 Ops/sec
Optional chaining (no property) 906997056.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)