Run details:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/119.0
Firefox 119
Mac OS X 10.15
Desktop
one year ago
Test name Executions per second
Lodash uniqBy 4278.0 Ops/sec
new Set() Destructuring 2840.3 Ops/sec
uniq for loop 13033.4 Ops/sec
uniq by forEach 223.8 Ops/sec
uniq by filter 133.7 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Lodash uniqBy

  • new Set() Destructuring

  • uniq for loop

  • uniq by forEach

  • uniq by filter