Run details:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:130.0) Gecko/20100101 Firefox/130.0
Firefox 130
Windows
Desktop
3 months ago
Test name Executions per second
Lodash uniqBy 3311.2 Ops/sec
new Set() Destructuring 2673.1 Ops/sec
uniq for loop 9241.7 Ops/sec
uniq by forEach 199.7 Ops/sec
uniq by filter 109.2 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter