What can you do when your browser is 7 times faster?
22 August 2008Andreas Gal, Brendan Eich, Dave Anderson, Mike Shaver, and a whole host of other super-smart folks at Mozilla have been working hard to bring a Trace-tree based Just-in-time compiler to Firefox. I was a little curious about what sort of things you could do with this new found speed - so I hacked together a demo of some photo editing operations in the browser. It runs about 7x faster using the JIT than Firefox 3. From what I understand there are some very straightforward optimizations for the tracing work (basically specializing for the fact that we are loading/storing ints into the array) that can probably speed this up around 2-4x very soon.
Click on the image below to watch a 1 minute screencast of it in action - or you can try it yourself here (I’d recommend you use the latest Firefox nightly with JIT turned on - but the demo works in Firefox 3 and Webkit nighties).

79 Responses to “What can you do when your browser is 7 times faster?”
August 23rd, 2008 at 8:17 am
Interesting, I’m curious to take a look at how this compares to SquirrelFish
August 23rd, 2008 at 9:22 am
So, you want to ask me to develop new application to slow down the new JIT compiler ?! And we have being doing that from very long time and have become exceedingly efficient at it ….
August 23rd, 2008 at 2:22 pm
Absolutely amazing
August 23rd, 2008 at 7:51 pm
The major question about JavaScript (as opposed to Java) is: IS IT SAFE?
Evidence to date says that allowing JavaScript to run significantly increases (to near-certainty) the chance that malware of some sort will execute. I have found no reason to trust this technology, which I refer to as “JavaVirus”, and until I can control, ABSOLUTELY, exactly what the script does, I will not run it on any machine (right now, it is filtered out by three levels of firewall software). JavaScript is the preferred attack vector. Thinking that this technology has no consequences, and apparently ignoring EVERY POSSIBLE security aspect of this technology, is one of the greatest hazards this technology presents. I do not trust it, and I consider its promotion to be somewhere between unethical, immoral and sociopathic. I don’t care HOW fast anything runs in my browser if I can’t trust it.
August 23rd, 2008 at 11:23 pm
Way to spread the FUD, Joseph. How about pulling your head out of the sand and moving on with life.
August 24th, 2008 at 12:39 am
auh,
silverlight/flash still rules.
August 24th, 2008 at 2:10 am
Faster JS means faster apps based on XUL.
I’ve developer VisualDiffer
http://dafizilla.sourceforge.net/visualdiffer/screenshots.php
as extension for Komodo and many operations (like file comparison) suffer from JS performances.
I hope to use tracemonkey on all XULRunner based application as soon as possible.
Great people works on Mozilla!
August 24th, 2008 at 2:49 am
Looks like it doesn’t yet work in the latest x86_64 nightly?
August 24th, 2008 at 3:04 am
Joseph, JavaScript runs in a sandbox, very similar to the Java applet sandbox. And “three levels of firewall software”, now you’re being ridiculous.
August 24th, 2008 at 9:43 am
Joseph, maybe you should like reconfigure this amazing system of superb stacked firewalls you use to like filter out software in general. Both local and remote.
In other news, kudos to the Mozilla team for this huge improvements in this difficult domain. Without doubt this will help to feature enrich the already rich Internet applications. I can only hope that the WebKit team will learn and catch-up in regards to their JS performance.
August 24th, 2008 at 9:48 am
Another comment specially for dubed. Remember that Silverlight 1.1 basically is a JS driven canvas. ORLY? yes.. really. Tho we will all love the CLR based version of Silverlight, the majority of the currently Silverlight deployed websites running in Mozilla will benefit from these improvements.
And since Adobe’s ‘involvement’ we can only expect that they might at least do ’something’ with the new found JS glory in Mozilla.
August 24th, 2008 at 7:22 pm
Fabulous. Mozilla site should have a page for “next-generation web awesomeness examples” like CSS3, interactive SVG, and processing.js, with a sub-page for “even more awesomeness coming with Firefox 3.1″. I try to tell people how great the HTML5 features in Safari and Firefox are and then have to search blogs to find examples.
It’s funny that you made a .swf to publicize this work. Maybe you can get Jing to create screencasts using the tag with fallback to swf for lesser browsers.
August 25th, 2008 at 2:15 am
Just a 4 times faster here.
August 28th, 2008 at 5:35 pm
Well, this poor chap has to wait an eon anyway as my downloads rarely exceed 5k/sec being on a dialup modem, yes there are places that still have no better than a basic copper telephone wire to connect to the internet, so I clicked on the image, after all it said it would run the demo in 1 minute, so I waited 3 minutes, but it still didn’t happen?? maybe someone will put the pictures into words, or a series of screenshots to explain the improvements??? it would certainly be appreciated
September 1st, 2008 at 1:52 pm
Amazing.
And congratulations to all the peoples involved.
I agree with Al: I have DSL, but still, viewing the movie was painful. I am right now downloading the full 33mb SWF file hoping it will be enough to see it on the browser.
As for Joseph, this improvement won’t probably decrease nor increase the current security of your browser. It will only make it faster. So, don’t get paranoid. Or next week, you’ll come here claiming to touch your keyboard only with gloves (”because, you know, the aliens…”).
September 2nd, 2008 at 12:23 pm
Although stated that your (great, fascinating) demo works with webkit, it doesn’t work with google’s new chrome browser? (Yes, of course it is new
September 4th, 2008 at 12:13 am
I am Very thank full the owner of this blog. Becouse of this blog is very imformative for me.. And I ask u some thiing You make more this type blog where we can get more knowledge. and any one tell me how can I find this type blog. http://www.penisenlargementz.com
September 8th, 2008 at 11:48 am
I could not run this demo on Chrome.
That is somewhat understandable.
But I could not even run it on IE7.
Ami i doing anything wrong?
I tried the following url:
http://people.mozilla.com/~schrep/image12.html
Best Regards, Somnath
September 28th, 2008 at 5:05 pm
Amazing Thank you so much!
October 11th, 2008 at 12:47 pm
thanks a lot
October 13th, 2008 at 12:22 pm
sohbet thank you admin
October 13th, 2008 at 12:22 pm
chat
October 15th, 2008 at 2:58 pm
Thanks a lot…
October 15th, 2008 at 3:11 pm
thanks a lot…..
October 17th, 2008 at 1:33 pm
thank you.
———–
sohbet
October 19th, 2008 at 2:09 am
thank you
——
sohbet
October 20th, 2008 at 3:13 pm
thanks…
key ödemeleri
October 21st, 2008 at 7:18 am
Thanks
October 21st, 2008 at 10:32 am
Admin thanks you mucuk
October 21st, 2008 at 10:33 am
thankss
October 21st, 2008 at 1:13 pm
thanks a lot
October 21st, 2008 at 1:13 pm
thank you
October 21st, 2008 at 1:14 pm
thanks
October 21st, 2008 at 1:17 pm
thanks
October 21st, 2008 at 2:47 pm
thanks a lot, oto kiralama falan işte..
October 21st, 2008 at 3:00 pm
thanks a lot
October 21st, 2008 at 4:35 pm
thannks a lot.
October 21st, 2008 at 4:35 pm
thank you
October 21st, 2008 at 4:36 pm
thanks
October 21st, 2008 at 4:36 pm
thank you wery lot
October 21st, 2008 at 4:37 pm
thank lot
October 21st, 2008 at 4:38 pm
thank you lot
October 21st, 2008 at 4:39 pm
thank lot
October 21st, 2008 at 4:39 pm
thank you wery much
October 21st, 2008 at 4:40 pm
thanksss lot
October 22nd, 2008 at 2:30 pm
thanks.
October 23rd, 2008 at 4:19 pm
thanks
October 25th, 2008 at 1:59 pm
good work thanks
October 26th, 2008 at 6:56 am
Thanks..
October 26th, 2008 at 11:00 pm
Thanks a lot…
October 27th, 2008 at 4:20 pm
eyw bilader…
November 2nd, 2008 at 2:46 am
http://www.balimcafe.net
November 2nd, 2008 at 11:04 am
thanks
November 2nd, 2008 at 11:05 am
thanks
November 2nd, 2008 at 11:19 am
Thanks you very much
November 2nd, 2008 at 11:19 am
Thanks you very much…
November 2nd, 2008 at 11:19 am
Thanks you very much…
November 2nd, 2008 at 1:23 pm
Thanks very nice. I Love Mozilla
November 4th, 2008 at 8:55 am
Muhabbet Thanks.
November 8th, 2008 at 4:42 am
its good i will use it thanks a lot.
November 8th, 2008 at 2:47 pm
perfect really thanks.I was looking for this kind of infos on the net.finally after my some search I found here.this article is the right place I search mostly.
November 9th, 2008 at 8:46 pm
thanks……
November 9th, 2008 at 8:47 pm
thank you very much
November 9th, 2008 at 8:48 pm
usefull article
November 9th, 2008 at 8:48 pm
nice article….
November 9th, 2008 at 8:49 pm
good article thanks.
November 9th, 2008 at 8:50 pm
it’s very nice…
November 11th, 2008 at 3:14 am
reading an entire book.
I think the Kindle vs. paperback book test is a good one. How do we react to even the smallest changes in our experience in reading. From page turning to scrolling (or pressing next page?), from paper reflecting light into our eyes to a screen sending it directly etc. At what point in the spectrum from book to evden eve nakliyat screen does any major change in our brains occur. My suspicion is that any little change in the technology of reading is vastly overshadowed by our environments.
http://www.agbabanakliyat.com
November 11th, 2008 at 3:16 am
thank you
November 12th, 2008 at 2:35 am
Thanks
November 12th, 2008 at 4:41 am
http://www.muhabbetgulu.com
November 13th, 2008 at 1:27 pm
thanks youu
November 13th, 2008 at 1:39 pm
Thanksss
November 14th, 2008 at 3:04 am
Thanks a lot
November 14th, 2008 at 3:05 am
Thanks a lot
November 19th, 2008 at 5:45 am
At what point in the spectrum from book to evden eve nakliyat screen does any major change in our brains occur. My suspicion is that any little change in the technology of reading is vastly overshadowed by our environments.
November 19th, 2008 at 12:21 pm
Thanks for helpful information you catch up us with your instructional explenation.
What people do is more important that what they say…
Best regards
November 19th, 2008 at 12:22 pm
Thanks for useful informations.
Best regards
November 20th, 2008 at 6:45 pm
a good read. thanks