Script Preparation code:
AخA
 
const array = window.array = []
for (let i = 1000; i; --i) array.push(i)
Tests:
  • Array.from

     
    window.a = Array.from(array)
  • Spread

     
    window.b = Array.from(array)
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Array.from
    Spread

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 years ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:72.0) Gecko/20100101 Firefox/72.0
Firefox 72 on Mac OS X 10.15
View result in a separate tab
Test name Executions per second
Array.from 37145.9 Ops/sec
Spread 39450.8 Ops/sec