JQuery, Prototype, and MooTools Benchmark – SlickSpeed

Introduction

Before I even start, let me state that I’m a JQuery fan. Ever since I’ve started with JavaScript frameworks I’ve weighed the pros and cons, and trust me there are a lot. You’ll always find people arguing Prototype, JQuery or MooTools. I went with JQuery because it could do all that I wanted with the least amount of bloat. I’m sorry, Prototype may do a hell of a lot, but I don’t think that I could make enough use or that 100 KB to justify it. Plus, Prototype can’t even handle basics on its own without having to piggy back off of script.aculo.us and it’s effects library.

Speed

Now with every new version of a Framework that comes out, this argument comes up again and again. Finally, we have something to put the arguments to rest.

slickspeed

In my personal testing, I’ve found that JQuery 1.21 leads the pack, but only in Internet Explorer. In Firefox it comes in dead last. Does this discourage me? Maybe a lil’ bit. Am I going to stop using JQuery and switch to Prototype? I think not.

What Do You Need?

It all depends on your uses for said framework. From the looks of it, Mootools looks more like a full fledged programming language. With all the definitions of new objects, etc. If, for some reason I’m needing to build an application in JavaScript then I’ll revisit it. But until now, the most JavaScript that I’ll be doing is so simple effects on elements (shows, hides, slides, class changes, etc) and a couple Ajax requests.

For this I don’t think I should suffer the 120 KB that Prototype has to offer, even though it’s blazing fast in Firefox. With that said, even if I hate Internet Explorer, it is still, by far, the most popular browser out there. So I take comfort in the fact that the majority of my audience is getting the speed benefits of JQuery.

Comments

  1. Juan García says:

    Do you guys know when they will update slickspeed libraries to the latest versions?
    At least updating to jQuery-1.3.2 will show clearly the winner.

  2. I would like to build a javascript in default.ctp
    What is the process?

  3. I tried Prototype, JQuery, and mootool . So my winner is mootool. Simple, easy, and fast to learn. My new project (http://quickmessageapp.com) base on mootool :)

  4. Abdul Awaes says:

    Nice Post!

Trackbacks

  1. Electronic Commerce – Blog Carnival (4th February…

    Welcome to the February 4, 2008 edition of electronic commerce. (Vol 2, No. 3, 2008)…

  2. […] Old presents JQuery, Prototype, and MooTools Benchmark – SlickSpeed posted at Web Development 2.0: Web Design, CakePHP, Web […]

  3. […] Old presents JQuery, Prototype, and MooTools Benchmark – SlickSpeed posted at Web Development 2.0: Web Design, CakePHP, Web […]