Run details:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Mobile Safari/537.36
Chrome Mobile 135
Android
Mobile
one year ago
Benchmark.js
array.where
3.2M/s
array.filter
3.0M/s
grepAlone
2.8M/s
$.grep
2.6M/s
angular.$filter
921K/s
array.find
666K/s
underscore.filter
571K/s
lodash.filter
422K/s
View exact numbers
Test name Executions per second
array.where 3,240,722 Ops/sec
array.filter 2,989,608 Ops/sec
grepAlone 2,781,162 Ops/sec
$.grep 2,632,345 Ops/sec
angular.$filter 920,953 Ops/sec
array.find 665,636 Ops/sec
underscore.filter 570,589 Ops/sec
lodash.filter 421,675 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests: