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 1030797.9 Ops/sec
Map - forEach 3483502.5 Ops/sec
Object.entries() - for of kv 743782.9 Ops/sec
Object.entries() - forEach 98152.7 Ops/sec
Object - for in 3148848.8 Ops/sec
Script Preparation code:
Tests:
  • Map - for of kv

  • Map - forEach

  • Object.entries() - for of kv

  • Object.entries() - forEach

  • Object - for in