Blurp

Benchmark created by Blurp on


Setup

function Foo () {}
    Foo.prototype.compare = function () {
    }
    
    jumpo = [[Foo, Foo.prototype.compare]];
    
    jump = function (c) {
      return jumpo.filter(function (x) {return x[0] === c.constructor})[0][1]
    };
    
    
    a = new Foo;

Test runner

Ready to run.

Testing in
TestOps/sec
jump
jump(a)();
ready
proto
;(function () {
a.compare();
}());
ready

Revisions

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

  • Revision 1: published by Blurp on