function name or name = function (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
name function
(function() {
                
                function MyConstructor() {
                                // do stuff;
                }
                function MyConstructorDoSomething () {
                                return 'I did something';
                }
                MyConstructor.prototype.doSomething = MyConstructorDoSomething

}());
 
ready
function name

(function() {
                
                function MyConstructor() {
                                // do stuff;
                }
                MyConstructor.prototype.doSomething = function() {
                                return 'I did something';
                };

}());
 
ready

Revisions

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