Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
array.where
3.9M/s
grepAlone
2.8M/s
$.grep
2.8M/s
angular.$filter
2.2M/s
underscore.filter
1.2M/s
array.find
1.2M/s
array.filter
1.1M/s
lodash.filter
1.0M/s
View exact numbers
Test name Executions per second
array.where 3,851,727 Ops/sec
grepAlone 2,771,319 Ops/sec
$.grep 2,756,162 Ops/sec
angular.$filter 2,203,924 Ops/sec
underscore.filter 1,197,711 Ops/sec
array.find 1,195,861 Ops/sec
array.filter 1,090,578 Ops/sec
lodash.filter 1,018,732 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: