function assignment semicolon

Benchmark created by David Tang on


Test runner

Ready to run.

Testing in
TestOps/sec
With semicolon
var a = function() {
 return 2;
};

a();
ready
Without semicolon
var a = function() {
 return 2;
}

a();
ready
Anonymous
function() {
 return 2;
}()
ready

Revisions

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