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.7M/s
grepAlone
3.3M/s
$.grep
3.2M/s
angular.$filter
2.7M/s
underscore.filter
1.4M/s
array.find
1.3M/s
array.filter
1.3M/s
lodash.filter
1.2M/s
View exact numbers
Test name Executions per second
array.where 4,657,676 Ops/sec
grepAlone 3,283,229 Ops/sec
$.grep 3,209,582 Ops/sec
angular.$filter 2,717,736 Ops/sec
underscore.filter 1,435,558 Ops/sec
array.find 1,341,068 Ops/sec
array.filter 1,298,244 Ops/sec
lodash.filter 1,212,910 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: