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
7.6M/s
grepAlone
6.1M/s
$.grep
6.0M/s
angular.$filter
3.0M/s
underscore.filter
1.5M/s
array.find
1.3M/s
array.filter
1.3M/s
lodash.filter
1.2M/s
View exact numbers
Test name Executions per second
array.where 7,641,782 Ops/sec
grepAlone 6,088,150 Ops/sec
$.grep 5,997,204 Ops/sec
angular.$filter 3,009,161 Ops/sec
underscore.filter 1,527,815 Ops/sec
array.find 1,302,047 Ops/sec
array.filter 1,277,899 Ops/sec
lodash.filter 1,243,938 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: