Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 11_2_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.114 Safari/537.36
Chrome 89
Mac OS X 11.2.2
Desktop
3 years ago
Test name Executions per second
$.grep 2385073.8 Ops/sec
array.find 922857.6 Ops/sec
array.where 3519844.8 Ops/sec
angular.$filter 1549380.8 Ops/sec
array.filter 1010367.2 Ops/sec
lodash.filter 2654145.2 Ops/sec
underscore.filter 2432281.2 Ops/sec
grepAlone 2442742.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;