Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36
Chrome 118
Linux
Desktop
one year ago
Test name Executions per second
Lodash uniqBy 2631.5 Ops/sec
new Set() Destructuring 2196.2 Ops/sec
uniq for loop 1183.3 Ops/sec
uniq by forEach 1153.7 Ops/sec
uniq by filter 641.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter