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 87049.3 Ops/sec
Map - forEach 85573.6 Ops/sec
Object.entries() - for of kv 190431.7 Ops/sec
Object.entries() - forEach 37623.1 Ops/sec
Object - for in 106459.9 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in


;