Run details:
Mozilla/5.0 (Linux; Android 11; Redmi Note 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Mobile Safari/537.36 EdgA/99.0.1150.55
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
Map - for of kv 88161.9 Ops/sec
Map - forEach 85632.8 Ops/sec
Object.entries() - for of kv 187872.4 Ops/sec
Object.entries() - forEach 35888.0 Ops/sec
Object - for in 105712.3 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in