Var vs no var

Benchmark created on


Setup

const obj = {
	name: 'test'
}

Test runner

Ready to run.

Testing in
TestOps/sec
With var
const name = obj.name

if (name === 'test') {}
ready
Without var
if (obj.name === 'test') {}
ready

Revisions

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