| Test name | Executions per second |
|---|---|
| ✓ constructor comparison (null) | 290,545,728 Ops/sec |
| then in (promise) | 277,024,768 Ops/sec |
| constructor comparison (promise) | 274,690,304 Ops/sec |
| instanceof Promise (promise) | 274,353,824 Ops/sec |
| then check (promise) | 272,032,704 Ops/sec |
| then in (null) | 269,355,904 Ops/sec |
| constructor comparison (empty object) | 268,097,376 Ops/sec |
| type obj?.then === function (null) | 264,524,080 Ops/sec |
| type obj?.then === function (promise) | 264,084,512 Ops/sec |
| instanceof Promise (null) | 261,321,632 Ops/sec |
| then check (null) | 257,841,136 Ops/sec |
| type obj?.then === function (empty object) | 251,857,760 Ops/sec |
| then check (empty object) | 248,983,088 Ops/sec |
| instanceof Promise (empty object) | 241,844,304 Ops/sec |
| then in (empty object) | 231,402,128 Ops/sec |