Run details:
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36
Chrome 126
Linux
Desktop
2 months ago
Test name Executions per second
Lodash uniqBy 1461.6 Ops/sec
new Set() Destructuring 1096.3 Ops/sec
uniq for loop 587.0 Ops/sec
uniq by forEach 602.0 Ops/sec
uniq by filter 419.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter