Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3363.0 Safari/537.36
Chrome 67
Mac OS X 10.13.3
Other
6 years ago
Test name Executions per second
$.grep 1324089.8 Ops/sec
array.find 548979.6 Ops/sec
array.where 1924821.0 Ops/sec
angular.$filter 555496.9 Ops/sec
array.filter 515259.4 Ops/sec
lodash.filter 384763.7 Ops/sec
underscore.filter 394797.3 Ops/sec
grepAlone 1387930.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;