Script Preparation code:
AخA
 
var obj = { a: 1, b: 2, c: 3, d: 4, e: 5 };
Tests:
  • undefined

     
    undefined !== obj.d;
  • typeof

     
    null !== obj.d;
  • bool

     
    !! obj.d;
  • IsInteger

     
    Number.isInteger(obj.d);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    undefined
    typeof
    bool
    IsInteger

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.2 Safari/605.1.15
Safari 17 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
undefined 663471488.0 Ops/sec
typeof 658224128.0 Ops/sec
bool 682934656.0 Ops/sec
IsInteger 695858688.0 Ops/sec