Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36
Chrome 96
Windows
Desktop
2 years ago
Test name Executions per second
$.grep 1711741.0 Ops/sec
array.find 773628.3 Ops/sec
array.where 2603032.0 Ops/sec
angular.$filter 1210166.0 Ops/sec
array.filter 840513.2 Ops/sec
lodash.filter 627545.0 Ops/sec
underscore.filter 899340.6 Ops/sec
grepAlone 1784854.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone