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
|
4,406,960 Ops/sec |
|
$.grep
|
3,163,240 Ops/sec |
|
grepAlone
|
3,157,366 Ops/sec |
|
angular.$filter
|
2,457,054 Ops/sec |
|
array.find
|
1,377,401 Ops/sec |
|
underscore.filter
|
1,375,125 Ops/sec |
|
array.filter
|
1,264,137 Ops/sec |
|
lodash.filter
|
1,175,709 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone