Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.27 Safari/537.36 OPR/62.0.3331.2 (Edition developer)
Opera 62
Linux
Desktop
5 years ago
Test name Executions per second
Using Reduce ES5 3307647.8 Ops/sec
Using Reduce ES5 (test with `in`) 3006600.0 Ops/sec
Using Reduce ES5 (test with `hasOwnProperty`) 3157945.8 Ops/sec
Using Reduce ES6 1640787.5 Ops/sec
Using Reduce ES6 (test with `in`) 1538364.4 Ops/sec
Using Reduce ES6 (test with `hasOwnProperty`) 1594372.1 Ops/sec
Using For... 4654527.0 Ops/sec
Using For... (test with `in`) 4651907.5 Ops/sec
Using For... (test with `hasOwnProperty`) 5064922.0 Ops/sec
Using For... In 20705678.0 Ops/sec
Using For... In (test with `in`) 18856086.0 Ops/sec
Using For... In (test with `hasOwnProperty`) 27150900.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`)


;