variable vs no variable

Benchmark created on


Setup

function hi() {
	console.log('hi')
}

Teardown

var message = "hi"

function hi2() {
	console.log(message)
}

Test runner

Ready to run.

Testing in
TestOps/sec
hi
hi()
ready
hi2
hi2()
ready

Revisions

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