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 1474337.8 Ops/sec
array.find 701376.4 Ops/sec
array.where 2517349.2 Ops/sec
angular.$filter 934240.9 Ops/sec
array.filter 628995.1 Ops/sec
lodash.filter 1743055.2 Ops/sec
underscore.filter 1568328.6 Ops/sec
grepAlone 1588083.4 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;