V8: neither all that nor a bag of chips

September 11, 2008, 11:09 pm · Filed under: JavaScript, Web Development

I just got an interesting result comparing Google Chrome to the latest WebKit nightly build. WebKit was nearly twice as fast as Chrome at completing the little suite of JavaScript unit tests I keep here at work. Is V8—Chrome’s much-touted JavaScript engine—neither all that nor a bag of chips?

andrew.hedges.name



I am a web developer, living and working in New Zealand. I’m into my family, photography and frisbee sports.

Computers are useless. They can only give you answers.
Pablo Picasso


Meta Me

LinkedIn
Twitter
Facebook
Ma.gnolia
Zooomr


Topics

Apple · Business · Coda · Design · Google · JavaScript · jQuery · Life · Marketing · New Mexico · New Zealand · PHP · Politics · Ruby on Rails · Twitter · Usability · Web Development · Widgets


Archives


Most Popular

Defeat comment spam? Yes we can! · The first 48 hours of PHP Function Reference, by the numbers · There is too much. Let me sum up. · What will be your legacy? · Make long URLs short with tr.im.it · On the value of Twitter · Coda 1.5 is the bee’s knees · Series on hold: What a surprise… · Radiant JavaScript Singletons Freelance Down Under · innerHTML versus the DOM: Can’t we all just get along?


Most Recent

Defeat comment spam? Yes we can! · There is too much. Let me sum up. · What will be your legacy? · Make long URLs short with tr.im.it · On the value of Twitter · Ego-surfing, 2001 style! · Stack Overflow: I’m sold! · V8: neither all that nor a bag of chips · Playing to a browser’s strengths: Simple Templates 1.1 · Introducing jQuery Simple Templates


Recent Reads

Encouraged Commentary · Google Weather API informal documentation · html5.org - HTML revisited · Introduction to WAI ARIA · bookoutlines / Predictably Irrational · The Rise of HTML5 · Five CSS design browser differences I can live with · HTML 5: The Markup Language · Avoiding Silos: “link” as a first-class object · The facade design pattern in JavaScript

See more @ Ma.gnolia


Friends

80/20 · 90 Seven Design · Alyson Hurt · Brian Warren · Daniel Lyons · Daniel Schwartz · David Hedges · Joshua Sallach · Kelly Green · Mark Bixby · Method Arts · Morgan Pyne · Piers Harding · Rob Pongsajapan · Ryan Park · seven-gen · Vaughan Rowsell · Vincent Thomé · Voom Studio


Recommended Books on
Web Development

My bias is for references over “cookbooks.” I want to know all of my options, not just one way to do something. Show me the why as well as the how and I am happy.

JavaScript: The Good Parts · JavaScript: The Definitive Guide · Designing with Web Standards · CSS: The Definitive Guide · Prioritizing Web Usability · The Elements of User Experience · Don't Make Me Think: A Common Sense Approach to Web Usability


Subscribe

Atom · RSS 2.0


I’ve hosted this website with pair Networks since 1997. They rock.

This blog is powered by software I wrote. Want some of that? Hire me.

When I read the comic, I got a mighty tingling sensation at the prospect that Google Chrome was going to change everything.

If Google’s own benchmark results were true, it’s JavaScript engine was going to be so fast, it was going to force all other browser vendors to cry “uncle” like the schoolgirls they are. Using Chrome was going to give you that “new sneakers” feeling you had as a kid when you got a new pair of shoes and knew they made you faster.

Now, like some others, I’ve come to the conclusion that V8 (despite the hype) is only evolutionary—not revolutionary—and has probably already been surpassed by at least one other major browser.

Run the tests for yourself.

Chrome versus WebKit
Chrome versus WebKit

Did you run the tests? Did you notice the little line at the bottom of the results that said “Elapsed time”? On my system, Google Chrome ran this collection of JavaScript significantly slower than did last night’s build of WebKit, which includes the brand new SquirrelFish Extreme JavaScript engine.

For the sake of completeness, I also downloaded the latest build of Firefox. After enabling TraceMonkey, their hot poop JavaScript engine, it sill took twice as long as WebKit to complete my test suite. Folks, I think we have a winner! (At least for this week…)

Lots is being written on the topic of JavaScript speed at the moment. In fact, you can find articles to support whatever flavour you favour.

I guess the moral of the story for me is that all three teams (that is, Chrome, WebKit, and Mozilla) are locked in a heated battle for JavaScript speed bragging rights, and that can only benefit us all in the end. It’s good for end-users because faster is better. It’s good for web developers because it opens up possibilities for a little more “R” in our RIAs.

The elephant in the room, yet again, is why—with all of their vast engineering weight behind it—does Microsoft’s Internet Explorer (the browser still saddling web developers everywhere) so truly suck? Maybe all of this innovation will shame them into getting with the program. Yeah, right. Call me cynical, but that makes me want to break out in song.

Fin

Comments close automatically after 15 days.
Still have something to say? Drop me a line!