Set Ctr (v2)

Revision 2 of this benchmark created on


Description

Testing sets

Test runner

Ready to run.

Testing in
TestOps/sec
Arr
const set = new Set();
const arr = []
for(let i = 0; i < 1000000; ++i)
arr.push(i);
for(n of arr) set.add(n)
ready
Set

const arr = []
for(let i = 0; i < 1000000; ++i)
arr.push(i);
const s = new Set(arr)
ready

Revisions

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