Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36
Chrome 137
Mac OS X 10.15.7
Desktop
one year ago
Benchmark.js
array.where
10.9M/s
array.filter
10.8M/s
grepAlone
8.9M/s
$.grep
8.7M/s
angular.$filter
3.8M/s
array.find
2.1M/s
underscore.filter
1.9M/s
lodash.filter
1.6M/s
View exact numbers
Test name Executions per second
array.where 10,891,731 Ops/sec
array.filter 10,787,393 Ops/sec
grepAlone 8,890,584 Ops/sec
$.grep 8,749,278 Ops/sec
angular.$filter 3,833,788 Ops/sec
array.find 2,050,237 Ops/sec
underscore.filter 1,857,272 Ops/sec
lodash.filter 1,621,650 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: