Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36
Chrome 72
Mac OS X 10.14.3
Desktop
5 years ago
Test name Executions per second
$.grep 1812014.0 Ops/sec
array.find 782297.9 Ops/sec
array.where 2868665.8 Ops/sec
angular.$filter 556231.2 Ops/sec
array.filter 724922.3 Ops/sec
lodash.filter 534428.8 Ops/sec
underscore.filter 934975.6 Ops/sec
grepAlone 1932630.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;