nested assignment

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
let
for (let i = 0; i<1000; i++) {
	for(let z=0; z<50; z++) {
		for (let y=0; y<50; y++) {
			let foo = y;
			let bar = z;
		}
	}
}
ready
const
for (let i = 0; i<1000; i++) {
	for(let z=0; z<50; z++) {
		for (let y=0; y<50; y++) {
			const foo = y;
			const bar = z;
		}
	}
}
ready
outer
let foo;
let bar;
for (let i = 0; i<1000; i++) {
	for(let z=0; z<50; z++) {
		for (let y=0; y<50; y++) {
			foo = y;
			bar = z;
		}
	}
}
ready

Revisions

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