| Test name | Executions per second |
|---|---|
| ✓ constructor comparison (null) | 281,647,872 Ops/sec |
| instanceof Promise (null) | 273,454,208 Ops/sec |
| then check (null) | 272,975,840 Ops/sec |
| type obj?.then === function (null) | 272,279,488 Ops/sec |
| then in (null) | 270,995,040 Ops/sec |
| instanceof Promise (promise) | 267,995,344 Ops/sec |
| type obj?.then === function (promise) | 267,618,192 Ops/sec |
| then check (promise) | 266,313,056 Ops/sec |
| then in (promise) | 263,913,248 Ops/sec |
| then check (empty object) | 258,130,784 Ops/sec |
| constructor comparison (promise) | 256,261,824 Ops/sec |
| then in (empty object) | 255,866,288 Ops/sec |
| type obj?.then === function (empty object) | 251,273,952 Ops/sec |
| constructor comparison (empty object) | 242,777,056 Ops/sec |
| instanceof Promise (empty object) | 181,374,336 Ops/sec |