Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36
Chrome 120
Windows
Desktop
2 years ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
3,468,948 Ops/sec |
|
grepAlone
|
2,362,729 Ops/sec |
|
$.grep
|
2,353,304 Ops/sec |
|
angular.$filter
|
2,026,062 Ops/sec |
|
underscore.filter
|
1,185,252 Ops/sec |
|
array.filter
|
1,110,563 Ops/sec |
|
array.find
|
914,325 Ops/sec |
|
lodash.filter
|
819,338 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone