set vs concat

Benchmark created on


Preparation HTML

	

Test runner

Ready to run.

Testing in
TestOps/sec
spreed operator
var a = [34, 35, 45, 48, 49];
var b = [48, 55];
var union = [...new Set([...a, ...b])];
console.log(union);
ready
concat
var a = [34, 35, 45, 48, 49];
var b = [48, 55];
var union = [...new Set([a.concat(b)])];
console.log(union);
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.