Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36
Chrome 68
Windows 7
Desktop
6 years ago
Test name Executions per second
$.grep 910900.6 Ops/sec
array.find 423134.5 Ops/sec
array.where 1395189.0 Ops/sec
angular.$filter 418882.8 Ops/sec
array.filter 426905.1 Ops/sec
lodash.filter 289515.7 Ops/sec
underscore.filter 481780.2 Ops/sec
grepAlone 913032.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone