Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36 OPR/64.0.3417.92
Opera 64
Windows
Desktop
4 years ago
Test name Executions per second
$.grep 1266091.0 Ops/sec
array.find 641431.6 Ops/sec
array.where 2182263.0 Ops/sec
angular.$filter 566535.0 Ops/sec
array.filter 548364.7 Ops/sec
lodash.filter 1619139.0 Ops/sec
underscore.filter 566271.6 Ops/sec
grepAlone 1407608.0 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone