Thursday, December 18th, 2008

Steve’s State of Performance 2008

Category: Performance

>Steve Souders has a nice performance roundup for 2008 that details some of the important utilities and knowledge that we gained this year.

His post gets even more interesting when he posits about the future, including:

  • Visibility into the Browser: Packet sniffers (like HTTPWatch, Fiddler, and WireShark) and tools like YSlow allow developers to investigate many of the “old school” performance issues: compression, Expires headers, redirects, etc. In order to optimize Web 2.0 apps, developers need to see the impact of JavaScript and CSS as the page loads, and gather stats on CPU load and memory consumption.
  • Think “Web 2.0?: Web 2.0 pages are often developed with a Web 1.0 mentality. In Web 1.0, the amount of CSS, JavaScript, and DOM elements on your page was more tolerable because it would be cleared away with the user’s next action. That’s not the case in Web 2.0. Web 2.0 apps can persist for minutes or even hours. If there are a lot of CSS selectors that have to be parsed with each repaint – that pain is felt again and again. If we include the JavaScript for all possible user actions, the size of JavaScript bloats and increases memory consumption and garbage collection. Dynamically adding elements to the DOM slows down our CSS (more selector matching) and JavaScript (think getElementsByTagName). As developers, we need to develop a new way of thinking about the shape and behavior of our web apps in a way that addresses the long page persistence that comes with Web 2.0.
  • Performance Standards: As the industry becomes more focused on web performance, a need for industry standards is going to arise. Many companies, tools, and services measure “response time”, but it’s unclear that they’re all measuring the same thing. Benchmarks exist for the browser JavaScript engines, but benchmarks are needed for other aspects of browser performance, like CSS and DOM. And current benchmarks are fairly theoretical and extreme. In addition, test suites are needed that gather measurements under more real world conditions. Standard libraries for measuring performance are needed, a la Jiffy, as well as standard formats for saving and exchanging performance data.
  • JavaScript Help: Browsers also need to make it easier for developers to load JavaScript with less of a performance impact. I’d like to see two new attributes for the SCRIPT tag: DEFER and POSTONLOAD. DEFER isn’t really “new” – IE has had the DEFER attribute since IE 5.5. DEFER is part of the HTML 4.0 specification, and it has been added to Firefox 3.1. One problem is you can’t use DEFER with scripts that utilize document.write, and yet this is critical for mitigating the performance impact of ads. Opera has shown that it’s possible to have deferred scripts still support document.write. This is the model that all browsers should follow for implementing DEFER. The POSTONLOAD attribute would tell the browser to load this script after all other resources have finished downloading, allowing the user to see other critical content more quickly. Developers can work around these issues with more code, but we’ll see wider adoption and more fast pages if browsers can help do the heavy lifting.

Steve has been teaching a class on performance at Stanford this semester. You can check out his final and midterm to see if you could ace the exam. Also, you can see material from the guest lecturers. Check it out.

And, what are you looking forward to in 2009 wrt performance?

Related Content:

  • The state of performance testing
    Some might say 2007 was the year the software industry started taking performance testing seriously. In this month's Peak Performance column, Scott...
  • The state of standards
    Confused by FAIS, SMI-S, RAID DDF or iSCSI? We make sense out of the alphabet soup of storage standards and help you determine which ones you should...
  • Storage Expo 2008
    Every year the great and the good of the storage world meet at Storage Expo to show off their wares and inform resellers and customers about the...
  • Representational State Transfer - REST Tutorial
    This learning guide will delve into representational state transfer (REST), its progress in various app dev tooling platforms and its uses in...
  • The state of backup dedupe
    In a relatively short time, data deduplication has revolutionized disk-based backup, but the technology is still evolving with new applications and...

Posted by Dion Almaer at 5:57 am
1 Comment

+++--
3.9 rating from 17 votes

1 Comment »

Comments feed TrackBack URI

I definitely agree with the comment on Performance Standards. Some benchmark that simulates a raytracer in javascript is interesting, but meaningless. Speed of DOM access is infinitely more important.

Comment by rubley — December 18, 2008

Leave a comment

You must be logged in to post a comment.