Script Preparation code:
AخA
 
var set = new Set([1,41,23,12321,-3, .13, () => {}, {}, []]);
var arrFrom = Array.from;
Tests:
  • spread operator

     
    [...set];
  • cached array.from

     
    arrFrom(set);
  • uncached array.from

     
    Array.from(set);
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    spread operator
    cached array.from
    uncached array.from

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126 on Windows
View result in a separate tab
Test name Executions per second
spread operator 6533459.0 Ops/sec
cached array.from 770969.0 Ops/sec
uncached array.from 2731311.8 Ops/sec