| Test name | Executions per second |
|---|---|
| ✓ constructor comparison (promise) | 291,952,128 Ops/sec |
| instanceof Promise (promise) | 291,322,752 Ops/sec |
| type obj?.then === function (promise) | 286,753,152 Ops/sec |
| then check (null) | 284,931,488 Ops/sec |
| instanceof Promise (null) | 281,329,920 Ops/sec |
| then in (promise) | 275,684,640 Ops/sec |
| then check (promise) | 271,678,016 Ops/sec |
| then in (null) | 264,346,208 Ops/sec |
| constructor comparison (null) | 263,155,680 Ops/sec |
| constructor comparison (empty object) | 255,776,288 Ops/sec |
| type obj?.then === function (null) | 255,328,784 Ops/sec |
| then check (empty object) | 253,897,104 Ops/sec |
| instanceof Promise (empty object) | 252,397,184 Ops/sec |
| then in (empty object) | 245,837,536 Ops/sec |
| type obj?.then === function (empty object) | 244,212,624 Ops/sec |