Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.80 Safari/537.36
Chrome 86
Mac OS X 10.15.7
Desktop
4 years ago
Test name Executions per second
$.grep 1074244.2 Ops/sec
array.find 370948.8 Ops/sec
array.where 1922675.5 Ops/sec
angular.$filter 912608.8 Ops/sec
array.filter 480324.2 Ops/sec
lodash.filter 1180265.9 Ops/sec
underscore.filter 1118333.9 Ops/sec
grepAlone 1351062.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;