Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:132.0) Gecko/20100101 Firefox/132.0
Firefox 132
Mac OS X 10.15
Desktop
2 months ago
Test name Executions per second
Lodash uniqBy 4734.7 Ops/sec
new Set() Destructuring 3024.5 Ops/sec
uniq for loop 11568.8 Ops/sec
uniq by forEach 223.6 Ops/sec
uniq by filter 121.3 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter