Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.5112.124 YaBrowser/22.9.4.863 Yowser/2.5 Safari/537.36
Yandex Browser 22
Windows
Desktop
2 years ago
Test name Executions per second
$.grep 1294468.1 Ops/sec
array.find 550311.2 Ops/sec
array.where 2149519.8 Ops/sec
angular.$filter 842407.0 Ops/sec
array.filter 588346.7 Ops/sec
lodash.filter 455265.5 Ops/sec
underscore.filter 622627.4 Ops/sec
grepAlone 1559023.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • $.grep

  • array.find

  • array.where

  • angular.$filter

  • array.filter

  • lodash.filter

  • underscore.filter

  • grepAlone


;