Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.139 Safari/537.36
Chrome 66
Windows 7
Desktop
3 years ago
Test name Executions per second
$.grep 358801.0 Ops/sec
array.find 217912.3 Ops/sec
array.where 558397.6 Ops/sec
angular.$filter 153465.3 Ops/sec
array.filter 228809.5 Ops/sec
lodash.filter 167825.9 Ops/sec
underscore.filter 251991.5 Ops/sec
grepAlone 413978.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone