Script Preparation code:
Tests:
  • For + []=, Destructuring

  • For + []=, Indices

  • For-Of + []=, Destructuring

  • For-Of + []=, Indices

  • For + Push, Destructuring

  • For + Push, Indices

  • For-Of + Push, Destructuring

  • For-Of + Push, Indices

  • Map, Destructuring

  • Map, Indices

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    For + []=, Destructuring
    For + []=, Indices
    For-Of + []=, Destructuring
    For-Of + []=, Indices
    For + Push, Destructuring
    For + Push, Indices
    For-Of + Push, Destructuring
    For-Of + Push, Indices
    Map, Destructuring
    Map, Indices

    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: 2 years ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36
Chrome 100 on Windows
View result in a separate tab
Test name Executions per second
For + []=, Destructuring 623.4 Ops/sec
For + []=, Indices 474.3 Ops/sec
For-Of + []=, Destructuring 1655.8 Ops/sec
For-Of + []=, Indices 1717.1 Ops/sec
For + Push, Destructuring 569.8 Ops/sec
For + Push, Indices 364.0 Ops/sec
For-Of + Push, Destructuring 1081.2 Ops/sec
For-Of + Push, Indices 957.0 Ops/sec
Map, Destructuring 4745.0 Ops/sec
Map, Indices 4230.1 Ops/sec