Array vs Set

Benchmark created on


Preparation HTML

<script>
function buildArray() {
      const data = ['value0', 'value1', 'value2', 'value3', 'value4', 'value5', 'value6'];
}

function buildSet() {
	const data = new Set(['value0', 'value1', 'value2', 'value3', 'value4', 'value5', 'value6']);
}

</script>

Test runner

Ready to run.

Testing in
TestOps/sec
Build Array
buildArray()
ready
Build Set
buildSet()
ready

Revisions

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