Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Mobile Safari/537.36
Chrome Mobile 125
Android
Mobile
7 months ago
Test name Executions per second
Map - for of kv 2091289.4 Ops/sec
Map - forEach 1517290.6 Ops/sec
Object.entries() - for of kv 513858.5 Ops/sec
Object.entries() - forEach 92279.0 Ops/sec
Object - for in 317715.7 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in