Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0
Firefox 111
Windows
Desktop
one year ago
Test name Executions per second
spread / map 14364.9 Ops/sec
Array.from / entries() / map 11339.5 Ops/sec
Array.from / direct / map 14688.1 Ops/sec
Array.from / direct / nomap 18936.6 Ops/sec
for loop 20038.0 Ops/sec
Script Preparation code:
Tests:
  • spread / map

  • Array.from / entries() / map

  • Array.from / direct / map

  • Array.from / direct / nomap

  • for loop