Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36
Chrome 78
Mac OS X 10.15.1
Desktop
4 years ago
Test name Executions per second
$.grep 1615631.0 Ops/sec
array.find 637564.7 Ops/sec
array.where 2393080.0 Ops/sec
angular.$filter 576814.4 Ops/sec
array.filter 581811.4 Ops/sec
lodash.filter 1689352.0 Ops/sec
underscore.filter 712503.2 Ops/sec
grepAlone 1723676.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone