Test

Benchmark created on


Setup

const items = [];
for(i=0; i< 10000; i++) {
	items.push(i)
}

Test runner

Ready to run.

Testing in
TestOps/sec
Iterate
items.filter((item, index) => items.indexOf(item) === index)
ready
Set
[...new Set(items)]
ready

Revisions

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