Script Preparation code:
Tests:
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    undefined
    typeof
    in
    hasOwnProperty
    bool
    Object.prototype.hasOwnProperty

    Fastest: N/A

    Slowest: N/A

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
bool
626.3M/s
in
587.4M/s
typeof
508.2M/s
undefined
296.8M/s
hasOwnProperty
88.6M/s
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