Test case name | Result |
---|---|
Optional chaining, not null | |
Explicit null check, not null | |
Optional chaining, null | |
Explicit null check, null |
Test name | Executions per second |
---|---|
Optional chaining, not null | 17097368.0 Ops/sec |
Explicit null check, not null | 8556481.0 Ops/sec |
Optional chaining, null | 16938890.0 Ops/sec |
Explicit null check, null | 16811774.0 Ops/sec |