Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Mac OS X 10.15
Desktop
one month ago
Test name Executions per second
Array(length).fill() 7942633.5 Ops/sec
Array.from({ length: length }) 6051346.5 Ops/sec
Script Preparation code:
Tests:
  • Array(length).fill()

  • Array.from({ length: length })