Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0
Firefox 128
Mac OS X 10.15
Desktop
5 months ago
Test name Executions per second
Map - for of kv 2451101.5 Ops/sec
Map - forEach 6099721.0 Ops/sec
Object.entries() - for of kv 2024773.2 Ops/sec
Object.entries() - forEach 226349.3 Ops/sec
Object - for in 8908500.0 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in