| Test name | Executions per second |
|---|---|
| instanceof Promise (promise) | 274353824.0 Ops/sec |
| instanceof Promise (empty object) | 241844304.0 Ops/sec |
| instanceof Promise (null) | 261321632.0 Ops/sec |
| then check (promise) | 272032704.0 Ops/sec |
| then check (empty object) | 248983088.0 Ops/sec |
| then check (null) | 257841136.0 Ops/sec |
| constructor comparison (promise) | 274690304.0 Ops/sec |
| constructor comparison (empty object) | 268097376.0 Ops/sec |
| constructor comparison (null) | 290545728.0 Ops/sec |
| type obj?.then === function (promise) | 264084512.0 Ops/sec |
| type obj?.then === function (empty object) | 251857760.0 Ops/sec |
| type obj?.then === function (null) | 264524080.0 Ops/sec |
| then in (promise) | 277024768.0 Ops/sec |
| then in (empty object) | 231402128.0 Ops/sec |
| then in (null) | 269355904.0 Ops/sec |