FFF

Benchmark created on


Setup

const data = [...Array(1000).keys()];

Test runner

Ready to run.

Testing in
TestOps/sec
A
const set = [];

data.forEach(x => set.push(x));

const a = [...new Set(set)];
ready
B
const set = new Set();

data.forEach(x => set.add(x));

const a = [...set ];


ready

Revisions

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