Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36
Chrome 67
Mac OS X 10.12.6
Desktop
6 years ago
Test name Executions per second
$.grep 923028.4 Ops/sec
array.find 429033.7 Ops/sec
array.where 1372148.0 Ops/sec
angular.$filter 350830.1 Ops/sec
array.filter 440878.2 Ops/sec
lodash.filter 295134.8 Ops/sec
underscore.filter 513510.6 Ops/sec
grepAlone 1001716.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone