Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_1_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.128 Safari/537.36
Chrome 89
Mac OS X 11.1.0
Desktop
3 years ago
Test name Executions per second
$.grep 1444751.6 Ops/sec
array.find 431001.8 Ops/sec
array.where 1769122.2 Ops/sec
angular.$filter 937859.2 Ops/sec
array.filter 626549.2 Ops/sec
lodash.filter 1435688.4 Ops/sec
underscore.filter 1479022.1 Ops/sec
grepAlone 1699784.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;