Script Preparation code:
Tests:
  • [...]

  • length + push + ...

  • length + forEach + push

  • length + forEach + index

  • splice + push + ...

  • splice + forEach + push

  • splice + forEach + index

  • length + Object.assign

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    [...]
    length + push + ...
    length + forEach + push
    length + forEach + index
    splice + push + ...
    splice + forEach + push
    splice + forEach + index
    length + Object.assign

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 10 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118 on Windows
View result in a separate tab
Test name Executions per second
[...] 179262.5 Ops/sec
length + push + ... 16287.2 Ops/sec
length + forEach + push 8233.4 Ops/sec
length + forEach + index 17120.5 Ops/sec
splice + push + ... 14428.6 Ops/sec
splice + forEach + push 7921.6 Ops/sec
splice + forEach + index 12073.5 Ops/sec
length + Object.assign 153.2 Ops/sec