Deconstruction (v2)

Revision 2 of this benchmark created on


Setup

const a = {
	one: 1,
	two: 2,
	three: 3,
	four: 4,
	five: 5
}

Test runner

Ready to run.

Testing in
TestOps/sec
Old
const one = a.one;
const two = a.two;
const three = a.three;
const four = a.four;
const five = a.five;
ready
New
const {one, two, three, four, five} = a
ready

Revisions

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