Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36
Chrome 54
Windows
Other
7 years ago
Test name Executions per second
$.grep 930845.4 Ops/sec
array.find 477753.0 Ops/sec
array.where 1281910.2 Ops/sec
angular.$filter 240247.1 Ops/sec
array.filter 204757.7 Ops/sec
lodash.filter 416090.2 Ops/sec
underscore.filter 423963.0 Ops/sec
grepAlone 879887.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;