Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/74.0.3729.169 Chrome/74.0.3729.169 Safari/537.36
Chromium 74
Ubuntu
Desktop
5 years ago
Test name Executions per second
Using Reduce ES5 3548042.5 Ops/sec
Using Reduce ES5 (test with `in`) 3254322.0 Ops/sec
Using Reduce ES5 (test with `hasOwnProperty`) 3458980.2 Ops/sec
Using Reduce ES6 1819266.8 Ops/sec
Using Reduce ES6 (test with `in`) 1701087.9 Ops/sec
Using Reduce ES6 (test with `hasOwnProperty`) 1758941.1 Ops/sec
Using For... 5092490.0 Ops/sec
Using For... (test with `in`) 5128777.0 Ops/sec
Using For... (test with `hasOwnProperty`) 5531252.5 Ops/sec
Using For... In 20994960.0 Ops/sec
Using For... In (test with `in`) 18758918.0 Ops/sec
Using For... In (test with `hasOwnProperty`) 27311672.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`)


;