Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.182 Safari/537.36
Chrome 88
Mac OS X 10.15.7
Desktop
3 years ago
Test name Executions per second
$.grep 1491485.2 Ops/sec
array.find 524501.8 Ops/sec
array.where 2236952.5 Ops/sec
angular.$filter 1106790.2 Ops/sec
array.filter 732114.9 Ops/sec
lodash.filter 1607160.2 Ops/sec
underscore.filter 1594009.9 Ops/sec
grepAlone 1702313.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;