Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:136.0) Gecko/20100101 Firefox/136.0
Firefox 136
Mac OS X 10.15
Desktop
one year ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.find
|
8,884,634 Ops/sec |
|
grepAlone
|
5,291,836 Ops/sec |
|
$.grep
|
5,273,266 Ops/sec |
|
array.where
|
5,255,190 Ops/sec |
|
array.filter
|
5,006,129 Ops/sec |
|
underscore.filter
|
4,677,770 Ops/sec |
|
lodash.filter
|
4,430,006 Ops/sec |
|
angular.$filter
|
2,637,024 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone