Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36
Chrome 105
Mac OS X 10.15.7
Desktop
2 years ago
Test name Executions per second
$.grep 1899213.8 Ops/sec
array.find 685778.4 Ops/sec
array.where 3050546.5 Ops/sec
angular.$filter 1063772.4 Ops/sec
array.filter 749142.4 Ops/sec
lodash.filter 584111.6 Ops/sec
underscore.filter 823378.9 Ops/sec
grepAlone 2213765.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;