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 | 5818621.0 Ops/sec |
Using Reduce ES5 (test with `in`) | 5535982.0 Ops/sec |
Using Reduce ES5 (test with `hasOwnProperty`) | 5410121.0 Ops/sec |
Using Reduce ES6 | 3914782.0 Ops/sec |
Using Reduce ES6 (test with `in`) | 3762213.0 Ops/sec |
Using Reduce ES6 (test with `hasOwnProperty`) | 3709589.0 Ops/sec |
Using For... | 8271503.0 Ops/sec |
Using For... In | 28793100.0 Ops/sec |
Using For... In (test with `in`) | 14358600.0 Ops/sec |
Using For... In (test with `hasOwnProperty`) | 32081990.0 Ops/sec |