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 5818620.5 Ops/sec
Using Reduce ES5 (test with `in`) 5535982.0 Ops/sec
Using Reduce ES5 (test with `hasOwnProperty`) 5410120.5 Ops/sec
Using Reduce ES6 3914781.8 Ops/sec
Using Reduce ES6 (test with `in`) 3762212.5 Ops/sec
Using Reduce ES6 (test with `hasOwnProperty`) 3709589.2 Ops/sec
Using For... 8271503.0 Ops/sec
Using For... In 28793102.0 Ops/sec
Using For... In (test with `in`) 14358598.0 Ops/sec
Using For... In (test with `hasOwnProperty`) 32081986.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`)


;