Run details:
Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
Chrome 66
Windows 7
Desktop
6 years ago
Test name Executions per second
$.grep 207503.8 Ops/sec
array.find 141222.8 Ops/sec
array.where 362716.3 Ops/sec
angular.$filter 112145.0 Ops/sec
array.filter 118325.7 Ops/sec
lodash.filter 155748.8 Ops/sec
underscore.filter 198476.6 Ops/sec
grepAlone 309694.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone