Script Preparation code:
x
 
var map = new Map();
var arr = [];
var obj = {};
var randomU32 = function() {
    return Math.random() * (1 << 31) >>> 0;
}
Tests:
  • Map

     
    map.has(randomU32(), true);
  • Array

     
    randomU32() in arr
  • Object

     
    randomU32() in obj
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Map
    Array
    Object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Linux; Android 9; ONEPLUS A5010) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.116 Mobile Safari/537.36
Chrome Mobile 79 on Android
View result in a separate tab
Test name Executions per second
Map 1045960.1 Ops/sec
Array 496363.6 Ops/sec
Object 513230.7 Ops/sec