Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/113.0
Firefox 113
Windows
Desktop
one year ago
Test name Executions per second
new Array(), size 100 241005.5 Ops/sec
new Array(), size 1000 27219.2 Ops/sec
new Array(), size 10000 2717.7 Ops/sec
Array.from(), size 100 1414579.5 Ops/sec
Array.from(), size 1000 65872.0 Ops/sec
Array.from(), size 10000 6798.1 Ops/sec
Tests:
  • new Array(), size 100

  • new Array(), size 1000

  • new Array(), size 10000

  • Array.from(), size 100

  • Array.from(), size 1000

  • Array.from(), size 10000