Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36
Chrome 125
Mac OS X 10.15.7
Desktop
2 years ago
Benchmark.js
array.where
4.3M/s
grepAlone
3.0M/s
$.grep
2.9M/s
angular.$filter
2.2M/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,319,818 Ops/sec
grepAlone 3,019,552 Ops/sec
$.grep 2,920,404 Ops/sec
angular.$filter 2,235,512 Ops/sec
underscore.filter 1,271,997 Ops/sec
array.find 1,165,835 Ops/sec
array.filter 1,161,174 Ops/sec
lodash.filter 1,085,512 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: