Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36
Chrome 119
Mac OS X 10.15.7
Desktop
2 years ago
Benchmark.js
array.where
4.6M/s
grepAlone
3.2M/s
$.grep
3.1M/s
angular.$filter
2.6M/s
underscore.filter
1.3M/s
array.filter
1.2M/s
array.find
1.1M/s
lodash.filter
1.1M/s
View exact numbers
Test name Executions per second
array.where 4,631,496 Ops/sec
grepAlone 3,191,770 Ops/sec
$.grep 3,100,420 Ops/sec
angular.$filter 2,637,744 Ops/sec
underscore.filter 1,294,186 Ops/sec
array.filter 1,190,908 Ops/sec
array.find 1,104,600 Ops/sec
lodash.filter 1,086,732 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: