Tests:
  • fill

    AخA
     
    Array(10000).fill().map((_, i) => i+1)
  • from

     
    Array.from(Array(10000), (_, i) => i+1)
  • from object

     
    Array.from({length: 10000}, (_, i) => i+1)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    fill
    from
    from object

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 years ago)
Mozilla/5.0 (X11; Fedora; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36
Chrome 97 on Fedora
View result in a separate tab
Test name Executions per second
fill 4407.2 Ops/sec
from 1501.3 Ops/sec
from object 1045.7 Ops/sec