Run details:
Mozilla/5.0 (Android 13; Mobile; rv:108.0) Gecko/108.0 Firefox/108.0
Firefox Mobile 108
Android
Mobile
one year ago
Test name Executions per second
Map - for of kv 1026886.1 Ops/sec
Map - forEach 2451043.2 Ops/sec
Object.entries() - for of kv 699452.4 Ops/sec
Object.entries() - forEach 92314.1 Ops/sec
Object - for in 3013560.2 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in