Test case name | Result |
---|---|
Array.prototype.filter | |
for loop & Array.prototype.push | |
_.filter with function | |
_.filter with array predicate | |
_.filter with object predicate | |
_.remove with function | |
_.remove with array predicate | |
_.remove with object predicate | |
Array.prototype.forEach & Array.prototype.push |
Test name | Executions per second |
---|---|
Array.prototype.filter | 907081.1 Ops/sec |
for loop & Array.prototype.push | 334836.5 Ops/sec |
_.filter with function | 630489.7 Ops/sec |
_.filter with array predicate | 1174670.8 Ops/sec |
_.filter with object predicate | 1118279.1 Ops/sec |
_.remove with function | 667309.9 Ops/sec |
_.remove with array predicate | 1161254.1 Ops/sec |
_.remove with object predicate | 1208059.5 Ops/sec |
Array.prototype.forEach & Array.prototype.push | 811925.6 Ops/sec |