Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36
Chrome 111
Android
Desktop
one year ago
Test name Executions per second
for of Map set 174856.1 Ops/sec
for of new Map( results[] ) 169911.9 Ops/sec
new Map( {}[].map ) 156118.6 Ops/sec
Script Preparation code:
Tests:
  • for of Map set

  • for of new Map( results[] )

  • new Map( {}[].map )