Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0
Firefox 88
Ubuntu
Desktop
3 years ago
Test name Executions per second
Lodash uniqBy 1203.9 Ops/sec
new Set() Destructuring 1153.1 Ops/sec
uniq for loop 3228.7 Ops/sec
uniq by forEach 37.9 Ops/sec
uniq by filter 18.9 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter