Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
10,891,731 Ops/sec |
|
array.filter
|
10,787,393 Ops/sec |
|
grepAlone
|
8,890,584 Ops/sec |
|
$.grep
|
8,749,278 Ops/sec |
|
angular.$filter
|
3,833,788 Ops/sec |
|
array.find
|
2,050,237 Ops/sec |
|
underscore.filter
|
1,857,272 Ops/sec |
|
lodash.filter
|
1,621,650 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone