Tests:
  • Array.prototype.concat

  • Array.prototype.push

  • Array.prototype.reduce

  • For-each

  • For-of

  • For-in

  • For

  • The Spread-Operator

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Array.prototype.concat
    Array.prototype.push
    Array.prototype.reduce
    For-each
    For-of
    For-in
    For
    The Spread-Operator

    Fastest: N/A

    Slowest: N/A

Get performance results from real users on your website with Request Metrics.
Latest run results:
Run details: (Test run date: one year ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36
Chrome 107 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
Array.prototype.concat 15973590.0 Ops/sec
Array.prototype.push 59661620.0 Ops/sec
Array.prototype.reduce 55051800.0 Ops/sec
For-each 51318840.0 Ops/sec
For-of 51442720.0 Ops/sec
For-in 7629410.0 Ops/sec
For 55140150.0 Ops/sec
The Spread-Operator 37144080.0 Ops/sec