Run details:
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
iOS 16.4
Mobile
one year ago
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
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`)