12 points · by MadRabbit · 16y ago · 26 comments
:)
So that you have a choice. If you disagree, then you don't count this line, if you do agree then you count it.
Either way RightJS comes faster
But don't count it if you don't like the idea, it's just one test among many others and not the slowest one. So it won't change a lot.
But as for the second part, I don't see any difference in coding efforts between jQuery and RightJS, if you really read the tests on github, you will see the size of code is about the same, RightJS is even compacter in many places.
> Instead let's test selector speeds etc.
Actually this is what's pointless, both of the frameworks do it by using native features of the modern browsers and results will about the same for any framework.
> i would use jQuery's live() and then binding takes almost no time for any number of elements.
Are you sure about that?
Yes simple selectors are pointless. How about '.Class .child:visible:not(.test):eq(1)'?
It's kinda different story and rather a hack than a standard approach. And it's not always a cace, because it will handle the callbacks slower than a direct bind and therefore not always appropriate.
In any case it's not what the test is intended to do. We test standard operations, that's all. Testing live with bind is like comparing apples with oranges.
> How about '.Class .child:visible:not(.test):eq(1)'?
Do you mean non-standard css-selectors? There is nothing to test, rightjs simply doesn't support them
With rightjs you always can do it like that
$$('.class').filter('visible');
Insert element bottom 48 131 169
Insert element on top 48 134 167
Don't know about the release notes, my test says 1.4 is slower than 1.3.2
It's not RightJS only, Dojo and YUI win in those tests too.
Generally speaking PureDom is still faster than RightJS. It has to be.