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
|
2,544,546 Ops/sec |
|
grepAlone
|
1,562,352 Ops/sec |
|
$.grep
|
1,535,210 Ops/sec |
|
angular.$filter
|
1,310,987 Ops/sec |
|
underscore.filter
|
694,144 Ops/sec |
|
array.filter
|
681,423 Ops/sec |
|
array.find
|
661,827 Ops/sec |
|
lodash.filter
|
509,230 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone