Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
2 years ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
5,121,402 Ops/sec |
|
grepAlone
|
3,545,102 Ops/sec |
|
$.grep
|
3,345,957 Ops/sec |
|
angular.$filter
|
2,743,310 Ops/sec |
|
underscore.filter
|
1,587,441 Ops/sec |
|
array.filter
|
1,512,590 Ops/sec |
|
array.find
|
1,310,855 Ops/sec |
|
lodash.filter
|
1,235,583 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone