function vs Function (v15)

Revision 15 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
function(){}
var f1 = function() {
    var x = 1;
    console.log('1');
    };
var result = f1();
ready
new Function
var f2 = function() {
    var x = 2;
    console.log('2');
    };
var result = new f2();
ready

Revisions

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