Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.157 Safari/537.36
Chrome 74
Linux
Desktop
5 years ago
Test name Executions per second
Using Reduce ES5 2437846.2 Ops/sec
Using Reduce ES5 (test with `in`) 2133668.8 Ops/sec
Using Reduce ES5 (test with `hasOwnProperty`) 2233955.5 Ops/sec
Using Reduce ES6 1220985.4 Ops/sec
Using Reduce ES6 (test with `in`) 1147142.9 Ops/sec
Using Reduce ES6 (test with `hasOwnProperty`) 1146246.2 Ops/sec
Using For... 3070559.8 Ops/sec
Using For... (test with `in`) 3133122.0 Ops/sec
Using For... (test with `hasOwnProperty`) 3288337.8 Ops/sec
Using For... In 13040140.0 Ops/sec
Using For... In (test with `in`) 12237973.0 Ops/sec
Using For... In (test with `hasOwnProperty`) 14022577.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... (test with `in`)

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

  • Using For... In

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

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


;