Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36
Chrome 124
Mac OS X 10.15.7
Desktop
2 years ago
Benchmark.js
array.where
4.5M/s
grepAlone
3.1M/s
$.grep
3.0M/s
angular.$filter
2.4M/s
underscore.filter
1.3M/s
array.find
1.2M/s
array.filter
1.2M/s
lodash.filter
1.1M/s
View exact numbers
Test name Executions per second
array.where 4,451,213 Ops/sec
grepAlone 3,146,875 Ops/sec
$.grep 3,044,450 Ops/sec
angular.$filter 2,351,479 Ops/sec
underscore.filter 1,276,318 Ops/sec
array.find 1,187,693 Ops/sec
array.filter 1,156,027 Ops/sec
lodash.filter 1,085,639 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: