Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Mobile Safari/537.36
Chrome Mobile 119
Android
Mobile
one year ago
Test name Executions per second
Map - for of kv 4145892.2 Ops/sec
Map - forEach 2355056.5 Ops/sec
Object.entries() - for of kv 747417.4 Ops/sec
Object.entries() - forEach 128488.8 Ops/sec
Object - for in 355699.3 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in