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 1420562.9 Ops/sec
array.find 587196.6 Ops/sec
array.where 2084611.5 Ops/sec
angular.$filter 575452.7 Ops/sec
array.filter 545936.2 Ops/sec
lodash.filter 394900.0 Ops/sec
underscore.filter 693574.7 Ops/sec
grepAlone 1512474.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;