HTML Preparation code:
AخA
 
1
<!--your preparation HTML code goes here-->
Script Preparation code:
 
const array = Array.from({ length: 128000 }, (_, i) => { return { i } })
Tests:
  • Spread

     
    const copy = [...array];
  • Slice

     
    const copy = array.slice();
  • Array.from

     
    const copy = Array.from(array);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Spread
    Slice
    Array.from

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 3 days ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36
Chrome 108 on Windows
View result in a separate tab
Test name Executions per second
Spread 173.5 Ops/sec
Slice 2191.4 Ops/sec
Array.from 151.3 Ops/sec