Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
array.where
8.4M/s
grepAlone
6.9M/s
$.grep
6.7M/s
angular.$filter
3.0M/s
underscore.filter
1.8M/s
array.find
1.6M/s
array.filter
1.5M/s
lodash.filter
1.4M/s
View exact numbers
Test name Executions per second
array.where 8,355,554 Ops/sec
grepAlone 6,937,811 Ops/sec
$.grep 6,655,455 Ops/sec
angular.$filter 3,026,980 Ops/sec
underscore.filter 1,772,589 Ops/sec
array.find 1,615,811 Ops/sec
array.filter 1,491,024 Ops/sec
lodash.filter 1,381,836 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: