Tests:
  • array.from

    AخA
     
    var map = new Map();
    map.set("hello", "world");
    map.set("done", "do");
    const array = Array.from(map.values());
  • spread syntax

     
    var map = new Map();
    map.set("hello", "world");
    map.set("done", "do");
    const array = [...map.values()]
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    array.from
    spread syntax

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 4 years ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Chrome 83 on Linux
View result in a separate tab
Test name Executions per second
array.from 1733401.0 Ops/sec
spread syntax 2875558.0 Ops/sec