Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:107.0) Gecko/20100101 Firefox/107.0
Firefox 107
Ubuntu
Desktop
2 years ago
Test name Executions per second
Map - for of kv 427983.4 Ops/sec
Map - forEach 1929205.0 Ops/sec
Object.entries() - for of kv 295565.0 Ops/sec
Object.entries() - forEach 59584.8 Ops/sec
Object - for in 2157555.0 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in