Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36
Chrome 83
Mac OS X 10.15.4
Desktop
4 years ago
Test name Executions per second
$.grep 1373109.1 Ops/sec
array.find 593201.1 Ops/sec
array.where 2265679.5 Ops/sec
angular.$filter 1002649.1 Ops/sec
array.filter 567576.7 Ops/sec
lodash.filter 1565129.1 Ops/sec
underscore.filter 1425712.1 Ops/sec
grepAlone 1446120.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;