Tests:
  • Map

    AخA
     
    const test = new Map()
    for (var i=100000; i > 0; i--) {
      test.set(`key${i}`, `value${i}`)
    }
  • Object Iteration

     
    const test = {}
    for (var i=100000; i > 0; i--) {
      test[`key${i}`] = `value${i}`
    }
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Map
    Object Iteration

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 11 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123 on Windows
View result in a separate tab
Test name Executions per second
Map 48.9 Ops/sec
Object Iteration 48.2 Ops/sec