Script Preparation code:
AخA
 
 window.m = new Map();
 window.o = {};
  for (let i = 100000; i < 100000000; i+=1000) {
    var j = Math.floor(Math.random()*999);
    window.m.set(i+j, [12345, 67890])
    window.o[i+j] = [12345, 67890];
  }
Tests:
  • Map

     
        for (let i = 0; i < 100000; ++i) {
        arrayo = window.m.get(Math.floor(Math.random()*1000000));
      }
  • Object

     
    for (let i = 0; i < 100000; ++i) {
       arrayo = window.o[Math.floor(Math.random()*1000000)];
      }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Map
    Object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 years ago)
Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/113.0.0.0 Mobile Safari/537.36
Chrome Mobile 113 on Android
View result in a separate tab
Test name Executions per second
Map 7.3 Ops/sec
Object 7.4 Ops/sec