Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/140.0.0.0 Safari/537.36
Chrome 140
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
array.where
9.1M/s
array.filter
9.0M/s
$.grep
7.7M/s
angular.$filter
3.4M/s
array.find
1.7M/s
lodash.filter
1.4M/s
underscore.filter
1.3M/s
grepAlone
932K/s
View exact numbers
Test name Executions per second
array.where 9,068,524 Ops/sec
array.filter 9,003,323 Ops/sec
$.grep 7,656,951 Ops/sec
angular.$filter 3,431,561 Ops/sec
array.find 1,716,859 Ops/sec
lodash.filter 1,421,003 Ops/sec
underscore.filter 1,280,786 Ops/sec
grepAlone 932,333 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: