Run details:
Mozilla/5.0 (iPhone; CPU iPhone OS 17_5_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/17.5 Mobile/15E148 Safari/604.1
Mobile Safari 17
iOS 17.5.1
Mobile
2 years ago
Benchmark.js
View exact numbers
| Test name |
Executions per second |
|
✓
array.where
|
3,645,608 Ops/sec |
|
array.find
|
3,428,856 Ops/sec |
|
$.grep
|
2,714,472 Ops/sec |
|
grepAlone
|
2,478,205 Ops/sec |
|
array.filter
|
2,408,740 Ops/sec |
|
lodash.filter
|
2,128,828 Ops/sec |
|
underscore.filter
|
1,742,609 Ops/sec |
|
angular.$filter
|
1,126,971 Ops/sec |
Tests:
-
$.grep
-
array.find
-
array.where
-
angular.$filter
-
array.filter
-
lodash.filter
-
underscore.filter
-
grepAlone