Run details:
Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:79.0) Gecko/20100101 Firefox/79.0
Firefox 79
Ubuntu
Desktop
4 years ago
Test name Executions per second
Javascript Set ES6 + Array from (1) 98847.1 Ops/sec
Lodash union 63274.2 Ops/sec
Javascript Set ES6 + spread operators 101200.6 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • Javascript Set ES6 + Array from

  • Lodash union

  • Javascript Set ES6 + spread operators