Tests:
-
array.includes
-
Object.prototype.hasOwnProperty
-
object.hasOwnProperty
-
Reflect.has
-
object[field]
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:143.0) Gecko/20100101 Firefox/143.0
Firefox 143 on Windows
View result in a separate tab
object.hasOwnProperty
627K/s
Object.prototype.hasOwnProperty
503K/s
View exact numbers
| Test name |
Executions per second |
|
✓
object.hasOwnProperty
|
627,104 Ops/sec |
|
object[field]
|
528,885 Ops/sec |
|
Object.prototype.hasOwnProperty
|
503,252 Ops/sec |
|
Reflect.has
|
453,113 Ops/sec |
|
array.includes
|
717 Ops/sec |
Do you really want to delete benchmark?