> 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');
You can do that with jQuery as well and that's an ineresting performance comparison in itself. E.g. $('.class:visible:not(:eq(1))') vs $('.class').filter(':visible').not(':eq(1)'). I suspect it heavily depends on the size of the DOM tree and the number of elements.
You should choose already what do you stand for.
But anyway, if you want to test it go ahead, you know where the code is. I suppose jQuery handles virtual selectors via JavaScript and therefore there will be no serious difference in performance. I even suspect that a single additional function in the filter method in RightJS will still work faster than several internal selectors in jQuery.