Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36
Chrome 129
Windows
Desktop
one year ago
Benchmark.js
array.where
4.9M/s
grepAlone
3.4M/s
$.grep
3.3M/s
angular.$filter
2.0M/s
underscore.filter
1.5M/s
array.filter
1.5M/s
array.find
1.4M/s
lodash.filter
1.1M/s
View exact numbers
Test name Executions per second
array.where 4,928,718 Ops/sec
grepAlone 3,414,932 Ops/sec
$.grep 3,338,948 Ops/sec
angular.$filter 2,023,912 Ops/sec
underscore.filter 1,546,287 Ops/sec
array.filter 1,455,741 Ops/sec
array.find 1,356,940 Ops/sec
lodash.filter 1,139,232 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: