| Test name | Executions per second |
|---|---|
| instanceof Promise (promise) | 291322752.0 Ops/sec |
| instanceof Promise (empty object) | 252397184.0 Ops/sec |
| instanceof Promise (null) | 281329920.0 Ops/sec |
| then check (promise) | 271678016.0 Ops/sec |
| then check (empty object) | 253897104.0 Ops/sec |
| then check (null) | 284931488.0 Ops/sec |
| constructor comparison (promise) | 291952128.0 Ops/sec |
| constructor comparison (empty object) | 255776288.0 Ops/sec |
| constructor comparison (null) | 263155680.0 Ops/sec |
| type obj?.then === function (promise) | 286753152.0 Ops/sec |
| type obj?.then === function (empty object) | 244212624.0 Ops/sec |
| type obj?.then === function (null) | 255328784.0 Ops/sec |
| then in (promise) | 275684640.0 Ops/sec |
| then in (empty object) | 245837536.0 Ops/sec |
| then in (null) | 264346208.0 Ops/sec |