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... 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... 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: one year ago)
Mozilla/5.0 (iPhone; CPU iPhone OS 16_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Mobile/15E148 Safari/604.1
Mobile Safari 16 on iOS 16.4
View result in a separate tab
Test name Executions per second
Using Reduce ES5 5818621.0 Ops/sec
Using Reduce ES5 (test with `in`) 5535982.0 Ops/sec
Using Reduce ES5 (test with `hasOwnProperty`) 5410121.0 Ops/sec
Using Reduce ES6 3914782.0 Ops/sec
Using Reduce ES6 (test with `in`) 3762213.0 Ops/sec
Using Reduce ES6 (test with `hasOwnProperty`) 3709589.0 Ops/sec
Using For... 8271503.0 Ops/sec
Using For... In 28793100.0 Ops/sec
Using For... In (test with `in`) 14358600.0 Ops/sec
Using For... In (test with `hasOwnProperty`) 32081990.0 Ops/sec