in vs Object.hasOwn vs Object.prototype.hasOwnPropertyFastest: in (2.0x faster)
94,939,520 ops/sec
51,175,464 ops/sec
46,999,880 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| in | |
| Object.hasOwn | |
| Object.prototype.hasOwnProperty |
| Test name | Executions per second |
|---|---|
| ✓ in | 95,197,144 Ops/sec |
| Object.prototype.hasOwnProperty | 53,286,856 Ops/sec |
| Object.hasOwn | 48,965,920 Ops/sec |