function vs Function (v2)

Revision 2 of this benchmark created on


Test runner

Ready to run.

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

Revisions

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