set vs list

Benchmark created on


Setup



Test runner

Ready to run.

Testing in WebKit 537.36 / undefined
TestOps/sec
list includes
list = [1, 2, 3];
list.includes(1);
list.includes(3);
ready
set has
set = new Set([1, 2, 3]);
set.has(1);
set.has(3);
ready

Revisions

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