| Test name | Executions per second |
|---|---|
| ✓ then check (null) | 287,877,824 Ops/sec |
| then check (promise) | 286,208,736 Ops/sec |
| instanceof Promise (promise) | 281,194,112 Ops/sec |
| constructor comparison (promise) | 277,557,440 Ops/sec |
| type obj?.then === function (null) | 270,843,008 Ops/sec |
| instanceof Promise (null) | 270,780,128 Ops/sec |
| type obj?.then === function (promise) | 270,145,664 Ops/sec |
| constructor comparison (null) | 268,254,448 Ops/sec |
| type obj?.then === function (empty object) | 259,766,656 Ops/sec |
| constructor comparison (empty object) | 255,511,536 Ops/sec |
| then check (empty object) | 239,902,096 Ops/sec |
| instanceof Promise (empty object) | 223,709,696 Ops/sec |