Run details:
Mozilla/5.0 (Linux; Android 12; SM-G781B) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.78 Mobile Safari/537.36
Chrome Mobile 102
Android
Mobile
2 years ago
Test name Executions per second
Map - for of kv 1094336.4 Ops/sec
Map - forEach 1091095.2 Ops/sec
Object.entries() - for of kv 124027.6 Ops/sec
Object.entries() - forEach 45089.4 Ops/sec
Object - for in 143341.6 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in