| Test name | Executions per second |
|---|---|
| instanceof Promise (promise) | 267995344.0 Ops/sec |
| instanceof Promise (empty object) | 181374336.0 Ops/sec |
| instanceof Promise (null) | 273454208.0 Ops/sec |
| then check (promise) | 266313056.0 Ops/sec |
| then check (empty object) | 258130784.0 Ops/sec |
| then check (null) | 272975840.0 Ops/sec |
| constructor comparison (promise) | 256261824.0 Ops/sec |
| constructor comparison (empty object) | 242777056.0 Ops/sec |
| constructor comparison (null) | 281647872.0 Ops/sec |
| type obj?.then === function (promise) | 267618192.0 Ops/sec |
| type obj?.then === function (empty object) | 251273952.0 Ops/sec |
| type obj?.then === function (null) | 272279488.0 Ops/sec |
| then in (promise) | 263913248.0 Ops/sec |
| then in (empty object) | 255866288.0 Ops/sec |
| then in (null) | 270995040.0 Ops/sec |