Yashfunctions

JavaScript performance comparison

Test case created by Yash

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
declaration
function fun_declaration(){
    console.log('Hoisted to Top');
}

fun_declaration();
pending…
expression
var myVar; // undefined

myVar = function () {
    console.log('Annoymous Function assigned to Var');
};

myVar();
pending…
declaration_parameters
function fun_declaration(a, b){
    console.log('Hoisted to Top', a+b);
}

fun_declaration(10, 20);
pending…
expression_parameters
var myVar; // undefined

myVar = function (c, d) {
    console.log('Annoymous Function assigned to Var', c+d);
};

myVar(5, 7);
pending…

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

Compare results of other browsers

0 Comments