Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36
Chrome 121
Windows
Desktop
2 years ago
Benchmark.js
array.where
5.1M/s
grepAlone
3.5M/s
$.grep
3.3M/s
angular.$filter
2.7M/s
underscore.filter
1.6M/s
array.filter
1.5M/s
array.find
1.3M/s
lodash.filter
1.2M/s
View exact numbers
Test name Executions per second
array.where 5,121,402 Ops/sec
grepAlone 3,545,102 Ops/sec
$.grep 3,345,957 Ops/sec
angular.$filter 2,743,310 Ops/sec
underscore.filter 1,587,441 Ops/sec
array.filter 1,512,590 Ops/sec
array.find 1,310,855 Ops/sec
lodash.filter 1,235,583 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: