Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.84 Safari/537.36 OPR/85.0.4341.28
Opera 85
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
$.grep 1242354.8 Ops/sec
array.find 446004.6 Ops/sec
array.where 2192633.2 Ops/sec
angular.$filter 799504.1 Ops/sec
array.filter 533329.6 Ops/sec
lodash.filter 410187.5 Ops/sec
underscore.filter 577786.0 Ops/sec
grepAlone 1406511.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;