Battle of the Web Browsers
Stop. Don't look up. Don't look outside of the box, the rectangle holding this text. Can you tell me which browser you're using? Did you choose it yourself for all the right reasons? Can you explain why you're trusting your precious HTML-encoded content to this browser, the way a major league batter can explain why maple or ash and a thin or thick barrel is absolutely the right choice for sending that ball into the bleachers? Are you sure this browser is the best choice for the tags and the metadata hurling toward your computer?
If you can't answer the questions, get out of here. If you think that this highly optimized, just-in-time, infinitely customizable technology is another mere commodity, don't even bother finishing this sentence to look for the insult you know is coming. You're not good enough to read this text. You don't deserve the information.
[ InfoWorld's Enterprise Windows blogger says IE9 is better than Firefox 4 and Chrome 10. Also on InfoWorld: The top HTML5 features: Canvas, video, audio, and graphics | Local data storage | Data communications | HTML5 forms | Geolocation and other tidbits]
Now that the room is cleared of the drones who go through life happy to use whichever browser their fellow drones in the IT support staff installed in their computer, it's time to look once again at the browsers and think about what makes them better. What? You did that several months ago? You're thinking, "How much could they really have changed?" Do I need to go back to channeling David Mamet?
The browser world is taking Ezra Pound's command to make it new to extreme lengths, and much has changed since I started writing this sentence. Why, just a few moments ago, Firefox and Chrome both dropped their late morning builds, and the programmers at Microsoft are heading off to teatime, so they've pushed their latest versions. New versions are appearing every several weeks, and they often include substantial new features, such as better fonts, new video codecs, more sophisticated privacy switches, better local storage, and more. It's not a question of whether you're using your grandfather's browser or even your father's browser. Now you can come back from lunch and lock up your brain wondering whether you can make it through the afternoon with the browser you installed this morning.
Before the picture changes again, here's a survey of the five major browsers -- Opera, Safari, Chrome, Firefox, and IE -- and how they are performing right now. All of them are excellent tools written by driven programmers who see themselves locked in a battle for the future of humanity, which it is if you forget all of the physical objects that occupy those other moments when we're not checking our email or browsing a new site.
The list of changes and improvements is so long that this article can't begin to mention everything. I've tried to hit a few of the most important points.
Battle of the Web browsers: HTML5
All of the energy devoted to HTML5 has been one of the top drivers of the increased pace. While people have been talking about the new standard for 10 or so years, it only became an obsession in the last few. All of the press releases trumpeting new versions of browsers invariably mention the numerous new features from the HTML5 standard.
Does this matter to the average user? Not yet. Most websites don't use any of the new features today, but this is gradually changing as Web developers start to take note. Google is pushing Web apps through the Chrome Web store and clearly sees HTML5 apps as a big part of the software ecology.
IE9, for instance, implements what I think are the most important parts: the local storage, as well as the canvas, video, and audio tags. It falls behind because it gets only 4 of the possible 90 points for the way it doesn't implement the new features for testing input to a form. Granted, these 86 points that IE didn't earn correspond to real features, but I don't think they're the most important features. Furthermore, while smarter forms sound like a good idea, their allocation of 90 points distorts their importance. Features like Web Workers get only 10 points, but they may be even more useful for writing client-based code.
There are more sophisticated trials like Philip Taylor's extensive collection of tests that push every part of the canvas specification. Because it creates a canvas object for you, Chrome gets a perfect score of 20 in that field from the HTML5 Test, but it passes only 636 of Taylor's tests and fails 141 of them. IE9 does better here, failing only 67, half as many as Chrome.
Is this gap important? Many of these missing capabilities may not be essential for creating great games. Many of Chrome's failures seem to involve parsing some of the numerical parameters. I'm not sure whether to chuckle about or salute the news that the browsers are supposed to be able to parse octal. In another test with a 2D transformation, Chrome left a pixel with an alpha blending value of 254 instead of 255. IE, on the other hand, also seemed to fail a random test here or there.
For all of the attention lavished on the canvas object, other features are getting little attention from the browser programmers. Microdata formats that provide a standard structure for dates and other common data aren't getting implemented. Local devices like video cameras and joysticks are also largely ignored -- not that this matters because they've just changed the standard to be more flexible.
My advice is to not think about this too much unless you plan on using an application that works with features like forms that are implemented by only some of the browsers. The days when there were many practical differences between the browsers are now behind us. IE has caught up nicely, and I expect Microsoft will continue to push compatibility because the company understands it doesn't have the domination it once enjoyed.
Battle of the Web browsers: Speed
Below, you'll find a table I built up running the latest browsers on a quad-core Windows Vista PC with 3GB of RAM. Your mileage will vary, and performance will improve as the browsers get better at exploiting video cards and multiple cores.
It's important to regard these benchmarks with a certain amount of skepticism. Both the SunSpider and V8 benchmarks include computationally heavy tasks like encryption routines. These bit-banging operations can be a good test of raw performance, but they're not very common in real-world applications. Even when applications use encryption, they rarely do it thousands of times in a row. Your experience may be quite different unless you're constantly and repeatedly encrypting items.
The benchmark developers try to address this problem. Google's V8 designers, for instance, searched the Web for a number of common regular expressions like the ones used to trim white space off the end of strings, but again it's not clear how common these operations are in the wild. I'm sure the most important number for the user is how quickly getElementById is executed.
This game promises to get even more interesting because Microsoft recently brought up benchmarking the power consumed to load a page. This is sort of related to the speed, but it's increasingly important for laptops and tablets. We may turn to this soon.
Battle of the Web browsers: Video and audio
In theory, the browsers all do a great job of embracing the new video tag. In practice, issues of patents and perhaps even pride seem to be creating incompatibilities beneath the surface. Everyone supports a different subset of the four common standards, but no standard has become dominant yet. Safari and IE do not support Ogg Theora or WebM, for example; Chrome doesn't support MPEG-4. All of these details create news as people debate the right plan for the Web.
I'm not sure how much this matters to the average person. The Theora website, for instance, includes a list of sample videos, and I was able to play some of them with Safari or IE. Why? The video's host, Blip.tv, gracefully switched to a different format, and I sailed on unaware.
This may not be much of a problem for the average website developer either because many don't bother trying to stream video. If Microsoft is happy to plop videos on YouTube instead of hosting the bits themselves, then there may not be any reason for the rest of us to host the video either. Let's just upload it to a free video streaming site that covers the bandwidth costs. How long will Google continue to pay for everyone's video bandwidth? I can't be sure, but it also means that most people don't spend much time worrying about these standards. If these free hosts disappear, the landscape will change quickly.
Next page: Plug-ins, developer tools, and the verdict...
Battle of the Web BrowsersNext Page