GWT vs Handcrafted JavaScript

It’s something I’d been wondering for a while: how does GWT’s JavaScript code stack up to code created and optimized by hand? I hadn’t really seen any exact data, until now.

It’s the age-old question: are you better to handcraft detailed instructions, or do you just let a compiler handle it for you? Assembler vs C? Write your own memory manager or let the garbage collector do that for you?

And now there’s generated JavaScript versus rolling your own. I love the simplicity of writing front-end in the same language as your back-end, but what about performance?

Turns out it’s not too bad. Ciaran McCann did some tests and found out only FireFox had some serious troubles running the GWT code. The test isn’t complete yet, I’m very interested in the stats for Windows.

update: Ciaran has updated his tests with Windows results. I already knew Chrome was great at executing JavaScript, but it appears it’s even better at executing GWT generated JavaScript.

(image credit)