Run details:
Mozilla/5.0 (Linux; Android 8.0.0; moto g(6) play) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.85 Mobile Safari/537.36
Chrome Mobile 94
Android 8.0.0
Mobile
3 years ago
Test name Executions per second
Map - for of kv 259762.4 Ops/sec
Map - forEach 202829.9 Ops/sec
Object.entries() - for of kv 50165.9 Ops/sec
Object.entries() - forEach 10420.7 Ops/sec
Object - for in 37717.1 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in