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) |
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 |