Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
3,851,727 Ops/sec |
|
grepAlone
|
2,771,319 Ops/sec |
|
$.grep
|
2,756,162 Ops/sec |
|
angular.$filter
|
2,203,924 Ops/sec |
|
underscore.filter
|
1,197,711 Ops/sec |
|
array.find
|
1,195,861 Ops/sec |
|
array.filter
|
1,090,578 Ops/sec |
|
lodash.filter
|
1,018,732 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone