Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 OPR/109.0.0.0
Opera 109
Mac OS X 10.15.7
Desktop
2 years ago
Benchmark.js
array.where
4.3M/s
grepAlone
3.1M/s
$.grep
2.9M/s
angular.$filter
2.5M/s
underscore.filter
1.2M/s
array.find
1.1M/s
array.filter
1.1M/s
lodash.filter
1.1M/s
View exact numbers
Test name Executions per second
array.where 4,337,212 Ops/sec
grepAlone 3,065,256 Ops/sec
$.grep 2,927,470 Ops/sec
angular.$filter 2,487,527 Ops/sec
underscore.filter 1,228,490 Ops/sec
array.find 1,142,974 Ops/sec
array.filter 1,125,510 Ops/sec
lodash.filter 1,058,585 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: