Run details:
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0
Firefox 68
Linux
Desktop
5 years ago
Test name Executions per second
Using Reduce ES5 3405142.0 Ops/sec
Using Reduce ES5 (test with `in`) 3355816.8 Ops/sec
Using Reduce ES5 (test with `hasOwnProperty`) 3341177.0 Ops/sec
Using Reduce ES6 2076512.2 Ops/sec
Using Reduce ES6 (test with `in`) 2047396.9 Ops/sec
Using Reduce ES6 (test with `hasOwnProperty`) 2051747.1 Ops/sec
Using For... 6588997.0 Ops/sec
Using For... (test with `in`) 6706559.5 Ops/sec
Using For... (test with `hasOwnProperty`) 6783331.0 Ops/sec
Using For... In 20019488.0 Ops/sec
Using For... In (test with `in`) 20338248.0 Ops/sec
Using For... In (test with `hasOwnProperty`) 20813968.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`)


;