Tests:
  • Using Reduce ES5

  • Using Reduce ES5 (test with `in`)

  • Using Reduce ES5 (test with `hasOwnProperty`)

  • Using Reduce ES6

  • Using Reduce ES6 (test with `in`)

  • Using Reduce ES6 (test with `hasOwnProperty`)

  • Using For...

  • Using For... (test with `in`)

  • Using For... (test with `hasOwnProperty`)

  • Using For... In

  • Using For... In (test with `in`)

  • Using For... In (test with `hasOwnProperty`)

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using Reduce ES5
    Using Reduce ES5 (test with `in`)
    Using Reduce ES5 (test with `hasOwnProperty`)
    Using Reduce ES6
    Using Reduce ES6 (test with `in`)
    Using Reduce ES6 (test with `hasOwnProperty`)
    Using For...
    Using For... (test with `in`)
    Using For... (test with `hasOwnProperty`)
    Using For... In
    Using For... In (test with `in`)
    Using For... In (test with `hasOwnProperty`)

    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: 4 years ago)
Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0
Firefox 69 on Linux
View result in a separate tab
Test name Executions per second
Using Reduce ES5 3650723.0 Ops/sec
Using Reduce ES5 (test with `in`) 3501851.0 Ops/sec
Using Reduce ES5 (test with `hasOwnProperty`) 3520716.0 Ops/sec
Using Reduce ES6 2175249.0 Ops/sec
Using Reduce ES6 (test with `in`) 2121036.0 Ops/sec
Using Reduce ES6 (test with `hasOwnProperty`) 2144708.0 Ops/sec
Using For... 6637014.0 Ops/sec
Using For... (test with `in`) 6695593.0 Ops/sec
Using For... (test with `hasOwnProperty`) 6725905.0 Ops/sec
Using For... In 17939290.0 Ops/sec
Using For... In (test with `in`) 18357430.0 Ops/sec
Using For... In (test with `hasOwnProperty`) 18217460.0 Ops/sec