Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:99.0) Gecko/20100101 Firefox/99.0
Firefox 99
Mac OS X 10.15
Desktop
2 years ago
Test name Executions per second
Map - for of kv 726500.8 Ops/sec
Map - forEach 2831481.5 Ops/sec
Object.entries() - for of kv 590927.2 Ops/sec
Object.entries() - forEach 112299.0 Ops/sec
Object - for in 3227895.8 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in