Posts Tagged ‘JSLitmus’

Javascript Inheritance benchmarks, redux

Thursday, March 26th, 2009

The other day I posted examples of Douglas Crockford’s parasitic Javascript inheritance method. I’d like to qualify some of my claims with some benchmarks using JSLitmus. The skinny: Parasitic inheritance is, indeed, faster. It’s slower to initialize, but unless you’re creating thousands and thousands of instances, that shouldn’t be a problem. It’s faster on calling superclass methods, and calling non-overridden methods. And you don’t need a bulky library to do it. Read on for the results. (more…)