Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
Chrome 73
Mac OS X 10.14.3
Desktop
5 years ago
Test name Executions per second
$.grep 1681830.5 Ops/sec
array.find 659433.0 Ops/sec
array.where 2576313.2 Ops/sec
angular.$filter 661712.2 Ops/sec
array.filter 636005.5 Ops/sec
lodash.filter 461864.5 Ops/sec
underscore.filter 817713.4 Ops/sec
grepAlone 1821792.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;