Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36
Chrome 85
Mac OS X 10.15.7
Desktop
4 years ago
Test name Executions per second
$.grep 1243204.5 Ops/sec
array.find 392757.2 Ops/sec
array.where 1972024.1 Ops/sec
angular.$filter 763474.2 Ops/sec
array.filter 454670.1 Ops/sec
lodash.filter 1358493.1 Ops/sec
underscore.filter 1297595.6 Ops/sec
grepAlone 1303469.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;