Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:96.0) Gecko/20100101 Firefox/96.0
Firefox 96
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Map - for of kv 520348.2 Ops/sec
Map - forEach 2167735.5 Ops/sec
Object.entries() - for of kv 428007.0 Ops/sec
Object.entries() - forEach 85786.9 Ops/sec
Object - for in 1723151.5 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in