Run details:
Mozilla/5.0 (Linux; Android 12; SAMSUNG SM-N976N) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/19.0 Chrome/102.0.5005.125 Mobile Safari/537.36
Chrome Mobile 102
Android
Mobile
2 years ago
Test name Executions per second
Lodash uniqBy 1398.0 Ops/sec
new Set() Destructuring 840.9 Ops/sec
uniq for loop 495.9 Ops/sec
uniq by forEach 81.9 Ops/sec
uniq by filter 40.8 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter