Run details:
Mozilla/5.0 (Linux; Android 11; Redmi Note 8) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.74 Mobile Safari/537.36 EdgA/99.0.1150.55
Chrome Mobile 99
Android
Mobile
2 years ago
Test name Executions per second
Map - for of kv 85899.6 Ops/sec
Map - forEach 87066.9 Ops/sec
Object.entries() - for of kv 187966.7 Ops/sec
Object.entries() - forEach 37671.1 Ops/sec
Object - for in 106369.4 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in