A quick recommendation

October 28, 2006 on 1:34 am | In ajax |

As I mentioned in my presentation at the Ajax Experience Boston, the best article on Ajax performance tuning I’ve found is Brad Neuberg’s tutorial How to Profile and Optimize Ajax Applications. Brad lays out a compelling high level roadmap for understanding and managing performance while also providing specific optimization tips. Awesome stuff.

8 Comments »

RSS feed for comments on this post. TrackBack URI

  1. Hi Ryan, this might be a bit out of topic but..

    I’m interested in comparing and measuring performance of Ajax vs non-Ajax web application, and I was wondering if anyone could kindly point me to a good example of Ajax vs non-Ajax, apple-to-apple comparison (same backend/database/server-side technologies)? The best I can come up so far is comparing: 1) Yahoo! Mail and Yahoo! Mail Beta. 2) A phpBB Forum and its Ajax counterpart.

    Maybe anyone know a certain web application which can switch its Ajax functionality on/off like a snap? That would be much useful.

    Thanks.. :D

    Comment by Michael Andreas — October 30, 2006 #

  2. Michael,

    That’s an interesting question. It’s a bit tricky to answer. Ajax typically leads to a different interaction model between the end user and the application, so a true apple-to-apple comparison between multi-step transactions against the site would be unlikely unless we are using an example created for these purposes.

    It might help me answer the question if I had a better idea of what you were trying to accomplish with this analysis. How many pages do you want to test, what type of data are you looking for, etc?

    Thanks!
    Ryan

    Comment by Ryan Breen — October 30, 2006 #

  3. Ryan, thanks for the lightning-fast reply.

    Yes, you’re spot on. Ajax application tends to break the conventional interaction logic due to its asynchronous nature. Which is a good thing of course, because it leads to richer user experience.

    I’m actually winding this up for my college essay. I want to prove that good, simple Ajax techniques can improve application performance. For the moment I’m defining performance as 3 variables: 1) speed, 2) interactivity, 3) usability. I think I got speed covered, but the other variables are a bit tricky to be measured.

    Anyway, creating a specific example seems to be the way to go. Maybe a forum or photo gallery or any other web application with 3–5 functional pages. A common website would also be an alternative. I can pack it up with some Ajax patterns (form processing, autosuggest, image overlay, etc). What do you think, Ryan?

    Comment by Michael Andreas — October 30, 2006 #

  4. I can’t speak much for usability, but interactivity is a big focus of mine. Ajax gives us the ability to hide more of the network interactivity to give the user a better perceived performance. Timing perceived performance is a little bit more work as a third party, but you can do it quite easily from JavaScript space. Add some javascript to time the point that the user initiates an action and add some script to time the point where the action is complete. This is slightly more complicated in a non-Ajax setup, but it’s not too hard to persist a little bit of state across page boundaries.

    This should give you a nice user-perceived time from within the user’s browser. I will be talking a lot more about this technique in the very near future.

    Comment by Ryan Breen — October 30, 2006 #

  5. Hi there, thanks for the nice comment on my tutorial! I appreciate it. Are you in the Bay Area?

    Best,
    Brad Neuberg
    bkn3@columbia.edu
    Weblog: http://codinginparadise.org

    Comment by Brad Neuberg — November 21, 2006 #

  6. Hi Brad. You’re certainly welcome. I’m in Boston, though I expect work to take me to the Bay a few times in the coming months.

    Comment by Ryan Breen — November 21, 2006 #

  7. Ryan, when you’re in town shoot me an email if you want and we can grab a beer (or tea if you don’t like beer) and chat and brainstorm. You can tell me more about the stuff you hack on.

    Best,
    Brad

    Comment by Brad Neuberg — November 22, 2006 #

  8. Sounds like a plan, and I have no objections to beer ;-)

    Comment by Ryan Breen — November 22, 2006 #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress with Pool theme design by Borja Fernandez.
Entries and comments feeds. Valid XHTML and CSS. ^Top^