Run details:
Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36
Chrome 83
Windows
Desktop
4 years ago
Test name Executions per second
$.grep 1353822.0 Ops/sec
array.find 637338.1 Ops/sec
array.where 2211037.2 Ops/sec
angular.$filter 840067.2 Ops/sec
array.filter 623207.1 Ops/sec
lodash.filter 1443333.5 Ops/sec
underscore.filter 1426568.9 Ops/sec
grepAlone 1477881.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;