named or anonymous functions (v23)

Revision 23 of this benchmark created on


Setup

function anonCtor() {
      'use strict';
      this.func = function() {
        'use strict';
        return 1;
      };
    };
    function namedCtor() {
      'use strict';
      this.func = named;
    
      function named() {
        'use strict';
        return 1;
      };
    };

Test runner

Ready to run.

Testing in
TestOps/sec
anonymous
new anonCtor();
ready
named
new namedCtor();
ready

Revisions

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