Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36 OPR/69.0.3686.77
Opera 69
Windows
Desktop
4 years ago
Test name Executions per second
$.grep 807388.4 Ops/sec
array.find 290473.8 Ops/sec
array.where 1262006.0 Ops/sec
angular.$filter 509523.5 Ops/sec
array.filter 284743.8 Ops/sec
lodash.filter 854906.0 Ops/sec
underscore.filter 808988.6 Ops/sec
grepAlone 836939.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone