Tests:
-
undefined
-
typeof
-
in
-
hasOwnProperty
-
bool
-
Object.prototype.hasOwnProperty
Rendered benchmark preparation results:
Latest run results:
Run details: (Test run date:
one year ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36
Chrome 99 on Windows
View result in a separate tab
Object.prototype.hasOwnProperty
44.3M/s
View exact numbers
| Test name |
Executions per second |
|
✓
bool
|
626,298,240 Ops/sec |
|
in
|
587,390,016 Ops/sec |
|
typeof
|
508,150,528 Ops/sec |
|
undefined
|
296,847,232 Ops/sec |
|
hasOwnProperty
|
88,553,664 Ops/sec |
|
Object.prototype.hasOwnProperty
|
44,279,072 Ops/sec |
Do you really want to delete benchmark?