Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:67.0) Gecko/20100101 Firefox/67.0
Firefox 67
Ubuntu
Desktop
5 years ago
Test name Executions per second
Using Reduce ES5 2445291.2 Ops/sec
Using Reduce ES5 (test with `in`) 2371624.5 Ops/sec
Using Reduce ES5 (test with `hasOwnProperty`) 2320444.5 Ops/sec
Using Reduce ES6 1326656.6 Ops/sec
Using Reduce ES6 (test with `in`) 1292341.4 Ops/sec
Using Reduce ES6 (test with `hasOwnProperty`) 1251763.4 Ops/sec
Using For... 4234517.0 Ops/sec
Using For... (test with `in`) 4240165.0 Ops/sec
Using For... (test with `hasOwnProperty`) 4080025.5 Ops/sec
Using For... In 12453124.0 Ops/sec
Using For... In (test with `in`) 13048838.0 Ops/sec
Using For... In (test with `hasOwnProperty`) 13192937.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`)


;