Run details:
Mozilla/5.0 (Linux; Android 11; LE2123) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Mobile Safari/537.36
Chrome Mobile 94
Android
Mobile
3 years ago
Test name Executions per second
Lodash uniqBy 457.7 Ops/sec
new Set() Destructuring 273.0 Ops/sec
uniq for loop 97.8 Ops/sec
uniq by forEach 12.8 Ops/sec
uniq by filter 6.5 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter