var vs let vs const

Benchmark created on


Description

Does it even matter?

Test runner

Ready to run.

Testing in
TestOps/sec
var
var i;

for(i = 0; i < 1000; i++){
	var t = 0;
}
ready
let
var i;

for(i = 0; i < 1000; i++){
	let t = 0;
}
ready
const
var i;

for(i = 0; i < 1000; i++){
	const t = 0;
}
ready

Revisions

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