Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Linux
Desktop
2 years ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
2,912,160 Ops/sec |
|
grepAlone
|
2,105,987 Ops/sec |
|
$.grep
|
1,792,949 Ops/sec |
|
angular.$filter
|
1,477,750 Ops/sec |
|
array.filter
|
755,814 Ops/sec |
|
underscore.filter
|
752,944 Ops/sec |
|
array.find
|
735,917 Ops/sec |
|
lodash.filter
|
598,915 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone