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 175572.2 Ops/sec
for of new Map( results[] ) 167621.6 Ops/sec
new Map( {}[].map ) 154948.1 Ops/sec
Script Preparation code:
Tests:
  • for of Map set

  • for of new Map( results[] )

  • new Map( {}[].map )