Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
array.where
4.4M/s
$.grep
3.2M/s
grepAlone
3.2M/s
angular.$filter
2.5M/s
array.find
1.4M/s
underscore.filter
1.4M/s
array.filter
1.3M/s
lodash.filter
1.2M/s
View exact numbers
Test name Executions per second
array.where 4,406,960 Ops/sec
$.grep 3,163,240 Ops/sec
grepAlone 3,157,366 Ops/sec
angular.$filter 2,457,054 Ops/sec
array.find 1,377,401 Ops/sec
underscore.filter 1,375,125 Ops/sec
array.filter 1,264,137 Ops/sec
lodash.filter 1,175,709 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: