Test case name | Result |
---|---|
for loop | |
Array.prototype.reduce.call | |
Array.prototype.reduce.apply | |
Array.prototype.forEach | |
.split.reduce | |
.split.forEach |
Test name | Executions per second |
---|---|
for loop | 690.5 Ops/sec |
Array.prototype.reduce.call | 63.6 Ops/sec |
Array.prototype.reduce.apply | 60.2 Ops/sec |
Array.prototype.forEach | 56.1 Ops/sec |
.split.reduce | 477.7 Ops/sec |
.split.forEach | 450.0 Ops/sec |