How to go faster than jQuery, Ext, Mootools...?
http://myjs.fr
I coded a JS framework that goes faster than jQuery, Ext, Mootools... (I haven't find any faster on the web for now) Accessing and modifying HTML Element properties are the main taks of JS frameworks and My.js does those operations way faster than others. My.js also handles custom classes more efficiently. See the tests.
I presented the framework and the core concepts I used to build it to the Paris JS communauty yesterday (parisjs.org). Paris JS Hackers gave me real nice feedbacks, comments and tweets.
I would love to have feedback from Hacker news hackers too!
27 comments
[ 4.4 ms ] story [ 67.1 ms ] threadI'll be sure to check it out next time I work on something personal that isn't already jQuery centric. :-)
Also, the site doesn't work with the StumbleUpon plugin for Chrome.
More general benchmarks would be nice. more real life situations maybe, even if it is hard to say what is 'real life'.
or simply to fork http://mootools.net/slickspeed/ and to put myjs in there to see how it compares.
- Get this on GitHub
- Get a native english speaker/writer to fix up the copy
Am I the only one who can't browse the documentation on myjs.fr ? on any browser on Linux.
Also, check this awesome speed benchmark ! http://jsperf.com/my-js-perf-tests/4
Concerning the framework, I must admit that I'm quite impressed. It's clearly different from current mainstream framework, particularly due to your use of aggressive inlining. It may not me the best bet for all use case, but it's definitely worth a look.
I had to leave earlier ParisJS, so I haven't seen your presentation, but people have given me some nice feedbacks! I like the way you take care of performance, it's cool!
But... I'm not sure that caching your result is a good idea. Almost by definition, Javascript is changing the DOM, so are the results eventually. A good practice is to cache-it, but manually is good enough, and at least you keep the power on the lists. I mention this because this is the feature you've highlighted with your benchmark.
Here an explanation of my words :
scope.ready(function(my, $) {
$("h2").addClass("mytest");
$("div").appendHtml("<h2>Test</h2>");
$("h2").addClass("mytest2");
});
>>> My new h2 doesn't have any class.
I'm looking forward to see how this will evolve! Keep going!