Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
9,068,524 Ops/sec |
|
array.filter
|
9,003,323 Ops/sec |
|
$.grep
|
7,656,951 Ops/sec |
|
angular.$filter
|
3,431,561 Ops/sec |
|
array.find
|
1,716,859 Ops/sec |
|
lodash.filter
|
1,421,003 Ops/sec |
|
underscore.filter
|
1,280,786 Ops/sec |
|
grepAlone
|
932,333 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone