| Test name | Executions per second |
|---|---|
| instanceof Promise (promise) | 274890752.0 Ops/sec |
| instanceof Promise (empty object) | 186713536.0 Ops/sec |
| instanceof Promise (null) | 286673728.0 Ops/sec |
| then check (promise) | 285806976.0 Ops/sec |
| then check (empty object) | 266213328.0 Ops/sec |
| then check (null) | 275131264.0 Ops/sec |
| constructor comparison (promise) | 263872736.0 Ops/sec |
| constructor comparison (empty object) | 268540544.0 Ops/sec |
| constructor comparison (null) | 269453216.0 Ops/sec |
| type obj?.then === function (promise) | 284939584.0 Ops/sec |
| type obj?.then === function (empty object) | 263832848.0 Ops/sec |
| type obj?.then === function (null) | 272799872.0 Ops/sec |
| then in (promise) | 277699616.0 Ops/sec |
| then in (empty object) | 264977792.0 Ops/sec |
| then in (null) | 265777920.0 Ops/sec |