kogarashisan

Results 9 comments of kogarashisan

If you calculate the time to construct a pair of objects for any given library, and then divide it by the time of 100000 pairs of method calls for that...

but... there is a separate test suite for that: http://jsperf.com/js-inheritance-object-construction Maybe I did no understand the question... By the way, did you know about existence of https://github.com/ericelliott/stampit

Sorry, but seems like your tests may be wrong. For method calls you need a warm-up loop, like this: ``` var model_names = ["Proto", "TypeScript", "CMBrowserMono" ...] model_names.forEach(function(name) { for...

"Where is the warm up code in your test?" - in my tests it's not needed, cause they invoke `method` for multiple object instances, which they create. Your tests have...

http://jsperf.com/js-inheritance-object-construction/2 - seem okay. http://jsperf.com/js-inheritance-method-calls/5 - Oh, my... this is very bad, but it's my fault :) Native model gets somehow optimized, it should not be 3 times faster than...

Improved quality of my tests, added a couple of models (not "proto") and explanation about Native. I will not promote "proto", sorry: there is over 50 ... if not 70...

"but its api is the cleanest in my opinion" - no. "its one of the only ones that's compatible with other inheritance libraries" - also no. "seems like one of...

I apologize. That was rude comment.