Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
8,355,554 Ops/sec |
|
grepAlone
|
6,937,811 Ops/sec |
|
$.grep
|
6,655,455 Ops/sec |
|
angular.$filter
|
3,026,980 Ops/sec |
|
underscore.filter
|
1,772,589 Ops/sec |
|
array.find
|
1,615,811 Ops/sec |
|
array.filter
|
1,491,024 Ops/sec |
|
lodash.filter
|
1,381,836 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone