Run details:
Mozilla/5.0 (Linux; Android 9; ONEPLUS A6003) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Mobile Safari/537.36
Chrome Mobile 106
Android
Mobile
2 years ago
Test name Executions per second
Map - for of kv 1571839.5 Ops/sec
Map - forEach 1257966.6 Ops/sec
Object.entries() - for of kv 275963.2 Ops/sec
Object.entries() - forEach 60189.7 Ops/sec
Object - for in 177858.5 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in