| Test name | Executions per second |
|---|---|
| ✓ then check (promise) | 284,511,104 Ops/sec |
| instanceof Promise (null) | 283,734,208 Ops/sec |
| instanceof Promise (promise) | 283,437,664 Ops/sec |
| type obj?.then === function (promise) | 276,022,752 Ops/sec |
| type obj?.then === function (null) | 271,441,504 Ops/sec |
| constructor comparison (null) | 270,014,592 Ops/sec |
| then check (null) | 268,432,352 Ops/sec |
| constructor comparison (promise) | 268,223,152 Ops/sec |
| type obj?.then === function (empty object) | 258,256,720 Ops/sec |
| then check (empty object) | 255,511,488 Ops/sec |
| constructor comparison (empty object) | 254,500,176 Ops/sec |
| instanceof Promise (empty object) | 191,984,272 Ops/sec |