Object.hasOwn vs Set.prototype.has4,737 ops/sec
4,514 ops/sec
Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.
| Test case name | Result |
|---|---|
| Object.hasOwn | |
| Set.prototype.has |
| Test name | Executions per second |
|---|---|
| ✓ Set.prototype.has | 1,843,018 Ops/sec |
| Object.hasOwn | 11,744 Ops/sec |