Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36
Chrome 123
Windows
Desktop
2 years ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
3,741,132 Ops/sec |
|
grepAlone
|
2,678,337 Ops/sec |
|
$.grep
|
2,668,426 Ops/sec |
|
angular.$filter
|
1,745,679 Ops/sec |
|
underscore.filter
|
1,242,648 Ops/sec |
|
array.filter
|
1,123,182 Ops/sec |
|
array.find
|
974,265 Ops/sec |
|
lodash.filter
|
833,712 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone