| Test name | Executions per second |
|---|---|
| ✓ instanceof Promise (promise) | 303,837,824 Ops/sec |
| then check (promise) | 298,302,976 Ops/sec |
| instanceof Promise (null) | 290,129,280 Ops/sec |
| then in (null) | 285,495,616 Ops/sec |
| constructor comparison (promise) | 277,396,320 Ops/sec |
| then in (promise) | 277,073,248 Ops/sec |
| constructor comparison (null) | 273,117,664 Ops/sec |
| type obj?.then === function (promise) | 269,327,680 Ops/sec |
| then check (null) | 265,423,008 Ops/sec |
| then in (empty object) | 262,307,344 Ops/sec |
| constructor comparison (empty object) | 260,667,152 Ops/sec |
| type obj?.then === function (null) | 260,597,456 Ops/sec |
| type obj?.then === function (empty object) | 257,449,760 Ops/sec |
| then check (empty object) | 254,150,944 Ops/sec |
| instanceof Promise (empty object) | 241,658,960 Ops/sec |