scoped var

Benchmark created on


Setup


Test runner

Ready to run.

Testing in
TestOps/sec
scoped
function main() {
	const someFunc = () => {
		let some = 1234
		console.log(some, ++some)
	}
	someFunc()
}
main()
ready
not scoped
function main() {
	let some = 1234
	const someFunc = () => {
		console.log(some, ++some)
	}
	someFunc()
}
main()
ready

Revisions

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