functions declarations

JavaScript performance comparison

Test case created

Test runner

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

Java applet disabled.

Testing in unknown unknown
Test Ops/sec
function expression
var f = function() { return 10; };
f();
pending…
function declaration
function f() { return 10; }
f();
pending…
Function
var f = new Function('return 10;');
f();
pending…
function expression (no var)
(function() { return 10; }());
pending…
Function (no var)
new Function('return 10;')();
 
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

Add a comment