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 |
Test name | Executions per second |
---|---|
Array.prototype.filter | 817730.5 Ops/sec |
for loop & Array.prototype.push | 454129.9 Ops/sec |
_.filter with function | 698095.2 Ops/sec |
_.filter with array predicate | 1130383.9 Ops/sec |
_.filter with object predicate | 1058550.6 Ops/sec |
_.remove with function | 545536.1 Ops/sec |
_.remove with array predicate | 1063043.1 Ops/sec |
_.remove with object predicate | 1103793.1 Ops/sec |