Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Mac OS X 10.15.7
Desktop
2 years ago
Benchmark.js
array.where
4.4M/s
grepAlone
3.0M/s
$.grep
3.0M/s
angular.$filter
2.6M/s
underscore.filter
1.3M/s
array.find
1.2M/s
array.filter
1.2M/s
lodash.filter
1.1M/s
View exact numbers
Test name Executions per second
array.where 4,392,816 Ops/sec
grepAlone 3,049,837 Ops/sec
$.grep 2,985,716 Ops/sec
angular.$filter 2,571,255 Ops/sec
underscore.filter 1,290,697 Ops/sec
array.find 1,192,595 Ops/sec
array.filter 1,174,275 Ops/sec
lodash.filter 1,090,578 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: