Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:94.0) Gecko/20100101 Firefox/94.0
Firefox 94
Mac OS X 10.15
Desktop
3 years ago
Test name Executions per second
Lodash uniqBy 1404.9 Ops/sec
new Set() Destructuring 1254.5 Ops/sec
uniq for loop 3549.1 Ops/sec
uniq by forEach 56.4 Ops/sec
uniq by filter 29.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter