Test case name | Result |
---|---|
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... In | |
Using For... In (test with `in`) | |
Using For... In (test with `hasOwnProperty`) |
Test name | Executions per second |
---|---|
Using Reduce ES5 | 5818620.5 Ops/sec |
Using Reduce ES5 (test with `in`) | 5535982.0 Ops/sec |
Using Reduce ES5 (test with `hasOwnProperty`) | 5410120.5 Ops/sec |
Using Reduce ES6 | 3914781.8 Ops/sec |
Using Reduce ES6 (test with `in`) | 3762212.5 Ops/sec |
Using Reduce ES6 (test with `hasOwnProperty`) | 3709589.2 Ops/sec |
Using For... | 8271503.0 Ops/sec |
Using For... In | 28793102.0 Ops/sec |
Using For... In (test with `in`) | 14358598.0 Ops/sec |
Using For... In (test with `hasOwnProperty`) | 32081986.0 Ops/sec |