Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Linux
Desktop
2 years ago
Benchmark.js
array.where
4.2M/s
grepAlone
3.1M/s
$.grep
2.9M/s
angular.$filter
2.3M/s
underscore.filter
1.2M/s
array.filter
1.2M/s
array.find
1.0M/s
lodash.filter
928K/s
View exact numbers
Test name Executions per second
array.where 4,157,628 Ops/sec
grepAlone 3,050,203 Ops/sec
$.grep 2,870,437 Ops/sec
angular.$filter 2,277,468 Ops/sec
underscore.filter 1,238,482 Ops/sec
array.filter 1,198,500 Ops/sec
array.find 1,029,390 Ops/sec
lodash.filter 927,872 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: