Script Preparation code:
AخA
 
var obj = {};
   for ( var i = 0; i < 1000; i++ ) {
      obj[i] = i;
    }
Tests:
  • 1

     
    const exist = 999 in obj;
  • 2

     
    const exist2 = !!obj[999];
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    1
    2

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 6 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.79 Safari/537.36
Chrome 67 on Mac OS X 10.12.6
View result in a separate tab
Test name Executions per second
1 12026652.0 Ops/sec
2 12897318.0 Ops/sec