Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0
Firefox 133
Mac OS X 10.15
Desktop
17 days ago
Test name Executions per second
Lodash uniqBy 4533.5 Ops/sec
new Set() Destructuring 2873.0 Ops/sec
uniq for loop 7884.0 Ops/sec
uniq by forEach 216.8 Ops/sec
uniq by filter 114.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter