Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3835.0 Safari/537.36
Chrome 77
Windows
Desktop
4 years ago
Test name Executions per second
$.grep 487746.8 Ops/sec
array.find 203278.0 Ops/sec
array.where 897940.8 Ops/sec
angular.$filter 191955.2 Ops/sec
array.filter 220538.5 Ops/sec
lodash.filter 563766.8 Ops/sec
underscore.filter 221876.9 Ops/sec
grepAlone 502759.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;