Slashdot Log In
Firefox 3 Performance Gets a Boost
Posted by
ScuttleMonkey
on Wed Feb 27, 2008 06:28 PM
from the powers-of-ten dept.
from the powers-of-ten dept.
jason writes "Mozilla has been working hard at making Firefox 3 faster than its predecessor, and it looks like they might be succeeding. They've recently added some significant JavaScript performance improvements that beat out all of the competition, including Opera 9.5 Beta. And it comes out to be about ten times faster than Internet Explorer 7! Things are really starting to fall into place for Firefox 3 Beta 4 which should be available in the next week or two."
Related Stories
Submission: Firefox 3 Performance Gets a Boost by Anonymous Coward
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
Safari (Score:4, Informative)
Re:Safari (Score:4, Funny)
Parent
Re:Safari (Score:5, Funny)
Parent
Re:Safari (Score:5, Funny)
Parent
Re:Safari (Score:5, Informative)
Parent
Re:Safari (Score:5, Insightful)
1. instrumented firefox (PGO technology)
2. ran the stinking benchmark with the instrumented code
3. used the feedback from the benchmark to automatically compile an optimized version of firefox optimized specifically for the benchmark.
4. Publish results of said benchmark for all to oooh and awwww over.
Isn't this as pathetic and useless as vendors manually tweaking their 3D drivers to artifically raise performance figures displayed in 3dmark? Did I totally misread TFA?
Parent
Re:Safari (Score:5, Interesting)
Parent
Re:Safari (Score:5, Insightful)
* Copyists, who dealt with basic production and correspondence
* Calligraphers, who dealt in fine book production
* Correctors, who collated and compared a finished book with the manuscript from which it had been produced
* Rubricators, who painted in the red letters
* Illuminators, who painted illustrations
Ohhhh wait, people still write books and the industry didn't collapse. It just changed. I'm sure in 50years we'll be saying 'wtf was a publisher again?'. And nothing of value will be lost. Artists have the HUGE opportunity of being able to cut out the middle men (there are lots of them) with current technology. With less hands in their pockets they will make big money from live shows and bigger profit from merchandise as well as profits from ad supported downloads and site page views. Artists will NOT starve, i don't see how cutting away the massive corporations which artists are carrying on their back atm will hurt the artists.
Parent
Re:Safari (Score:5, Informative)
Parent
Re:Safari (Score:5, Interesting)
Parent
Firefox 3 beta 3 on Linux is great (Score:5, Informative)
- Where as before FF2 would use around 500 meg it now only uses around 50 meg
- Flash no longer crashes the browser
- Javascript no longer crashes the browser
- Those long pauses as it is doing something that stalls the browsers operation are gone.
I couldn't believe the difference.
Parent
Re:Firefox 3 beta 3 on Linux is great (Score:5, Informative)
- Ctrl-MouseWheel zooming scales the images as well so the pages look normal without text overlapping the graphics
That feature alone is worth upgrading for.
Parent
Re:Safari (Score:5, Interesting)
How about testing with a WebKit nightly?
Parent
Why is this marked as troll? (Score:5, Informative)
Parent
Re:Safari (Score:5, Interesting)
Safari 3.0.4: 10758.4ms +/- 0.5%
WebKi r30628: 3390.0ms +/- 0.3%
If the performance gain percentage is comparable on their test machine (big if, granted) the comparable time would be 5675.8 ms, 22% faster than the PGO Firefox build.
Parent
Re:Safari (Score:5, Informative)
1. Firefox 3 Nightly (PGO Optimized): 7263.8ms
2. Firefox 3 Nightly (02/25/2008 build): 8219.4ms
3. Opera 9.5.9807 Beta: 10824.0ms
4. Firefox 3 Beta 3: 16080.6ms
5. Safari 3.0.4 Beta: 18012.6ms
6. Firefox 2.0.0.12: 29376.4ms
7. Internet Explorer 7: 72375.0ms
The results are generated by using the Sunspider JS benchmark suite.
This looks great, but everyone should notice a couple of things that may not be obvious.
1) Sunspider JS benchmark is designed by Apple developers and they use it to show the world how much faster Safari is, however Opera seems to outpace the Safari developers even with their own tests. However, yes some of the benchmarks used are 'picked' to favor Safari, and some are 'extended' to hurt IE.
2) Sunspider over does the tests of the Append String performance problem to make IE look worse than it really is. IE's JScript is coded as JScript was designed, and because of this, it doesn't optimize string append operations by using newer code. So by using this text extra, it artificially make IE look horribly slow. IE8 and possible additional IE7 releases are spending time optimizing the base JSCript code from the original implementations/specifications.
http://blogs.msdn.com/jscript/archive/2007/10/17/performance-issues-with-string-concatenation-in-jscript.aspx [msdn.com]
3) If you remove the 'string' routine from the test, IE7, consistently outperforms Firefox 2.0, and is very close to even Safari for with the results were cherry picked.
http://www.codinghorror.com/blog/archives/001023.html [codinghorror.com]
4) Some of the numbers are quite questionable as to the validity. For example IE7 is given 72375 in this article, and yet the slowest machine our tech lab has ever benchmarked is 2x the speed, and this is on a very old AMD 1ghz machine that barely runs Vista in which the test yeilded the horrible results. So where did they get the 72375 number from? A Pentium 200?
Again reference this link so see that even this person's results are no where near the 75K ms time reported for IE.
http://www.codinghorror.com/blog/archives/001023.html [codinghorror.com]
So it is quite questionable and inaccurate to try to portray IE7 as 10x slower, when without the 'emphasized' string append slowdown in IE7, it is faster than FireFox 2.0 and within a few 'ms' of even Safari and the new FireFox 3.0 results.
Good job to the FireFox team, btw.. Also does anyone have benchmarks of the new FireFox using a non-Apple test suite?
Parent
Re:Safari (Score:5, Interesting)
While new features can be nice, I couldn't name a feasible feature that a significant number of people would want and it's not in core Firefox or in an extension already. What I want from Firefox now is to provide the existing features in a secure, stable, fast and memory conserving way, in this order. Heck, I've turned off most of the new features in Firefox 2.x and wished they'd fix some annoying bugs instead. In 3.x the developers did a lot of work to remedy a lot of those bugs and issues, so big big kudos for them!
Cleaner code matters - it results in less bugs and security vulnerabilities, easier to add features and most likely better code.
Parent
Re:Safari (Score:5, Insightful)
Parent
Re:Safari (Score:5, Informative)
Parent
Re:Safari (Score:5, Insightful)
Extensions definitely should not have direct access to the threads. It would be an absolutely terrible idea. In fact, extensions shouldn't even know that there's multithreading going on behind the scenes. At best, extensions would be able to indirectly spawn threads and manipulate the spawned threads in a roundabout manner through that context using a thread-safe API.
Parent
Re:Safari (Score:5, Insightful)
-Aaron
Parent
Re:Safari (Score:5, Informative)
Parent
Re:Safari (Score:5, Funny)
Parent
Re:Safari (Score:5, Informative)
Example: I have 8 gb in this system. Right now I only have FF and Thunderbird running (+ a few background processes). Current "commit charge" is 475mb, of which Firefox is using 150mb. The system says I'm using 280mb of swap, but it's not actually thrashing the swap disk at all. That swap space is reserved, presumably because it represents 280mb of idle memory that is eligible to swap out, should another process need it.
Windows allocates virtual memory quite aggressively (when properly coded). If a process requests 500mb, but only really uses 100mb of it, the remaining 400mb will be "allocated" to swap while the real memory remains available to other processes. The moment a memory page is accessed, it is marked "dirty" and moved to real memory.
It's very much like sparse files, where unused or 0-filled pages don't take up any physical space (except for the map entry). That's how virtual memory is supposed to work, and it lets developers simplify their code by not having to worry too much about the physical arrangement of memory. It's also partly why you should never run a system without a swap file, even if it has tons of memory. I've probably never used all 8 gb in my system, but I still keep a (small) swap file. If I didn't, and that process allocates 500mb, Windows needs to dedicate 500mb whether or not it is actually in use. It reminds me of real-estate players, who can "buy" million-dollar buildings with a relatively small amount of capital, the rest on credit. Swap is like a line of credit for the OS.
Linux probably does the same thing, but I'm not as knowledgeable about its inner workings.
Parent
Re:Safari (Score:5, Informative)
Okay, I ran it on OS X anyway. I'm too lazy to run it on Windows too :) Here are the results [slashdot.org]. The new version of Webkit/Safari does beat the nightly of Firefox, but it is close and they're both a lot better than any regular release.
Parent
I tried Firefox 3 today (Score:5, Informative)
Heads up for all those trying Firefox 3 is Oldbar [google.co.uk]. I suggest you get it if you don't like the new 'innovations' by Mozilla Corp.
Re:I tried Firefox 3 today (Score:5, Informative)
Parent
Re:I tried Firefox 3 today (Score:5, Insightful)
The learn-as-you-go menu behaviour which they copied from Windows didn't work well in Windows either. The main problem is that it causes inconsistent behaviour. Repeating something doesn't necessarily give you the same menu items. It's good for newbies who read every single line before choosing one of them, but it's very bad for people who memorize what they do so they can repeat it quickly without even looking.
Parent
Re:I tried Firefox 3 today (Score:5, Insightful)
In which case you don't want the browser to autocomplete the URL for you at all, and the fact that it finds seemingly irrelevant matches shouldn't matter.
Parent
Re:I tried Firefox 3 today (Score:5, Interesting)
Best of all, if I visit any site and then want to get back to that site again sometime, all I need to remember is something in the title or url of the page I was at.
Parent
Re:I tried Firefox 3 today (Score:5, Insightful)
Say you visited the Wikipedia page on the Tunguska event a couple of weeks. If you want to revisit the page, all you do is start typing the first few letters of "Tunguska" and the page comes to the top of the list. With the old type of address bar, you'll have to type the whole Wikipedia URL or search your browser history separately. This speedup is well worth the relatively shallow learning curve.
I find it pretty stupid to compare this feature with Windows' "adaptive menu" feature. There's only a superficial resemblance. Remember, the traditional address bar still "learns" in the way you hate by ordering URLs by the frequency with which you visit them. What is it with the Slashdot crowd and being insanely conservative about their software?
Parent
Re:I tried Firefox 3 today (Score:5, Informative)
I think I understand.
You see, the new location bar learns. Though this silly new 'innovation' does indeed search through the URLs *and* titles of bookmarks and history, it also learns what you select the most. Give it a few more days and slashdot should come to the top of the list.
I experienced the same thing in the beginning.
When I bookmark page now I try to throw on a couple common sense tags that way when I type the tag in the location bar in the future, those bookmarks come out on top.
If you're *really* dead set on the shortest route:
1) Click Bookmarks -> Show All Bookmarks
2) Find the slashdot bookmark and select it
4) Click "More" under properties
5) Make the keyword
6) Close the window
Now type
Parent
Re:I tried Firefox 3 today (Score:5, Funny)
Expect to find it in a GWB-approved dictionary any day now.
Parent
Firefox 3 also supports new Java plug-in (Score:5, Informative)
Firefox 3 is going to include support for the new Java SE 6 runtime environment.
This is a new implementation of the Java Plug-In that features increased reliability, ability to specify large heap sizes, ability to select a specific JRE version to execute a particular applet, and support for signed applets on Windows Vista.
The New Plug-in is designed to work with: - Internet Explorer 6 and 7 on Windows XP and Windows Vista - Firefox 3 on Windows XP, Windows Vista, Solaris and Linux
Personally, I've been wanting to use the Firefox 3 beta for some time, primarily because of the performance and speed boosts over Firefox 2, but my favourite add-ons still aren't compatible.Note: The new Plug-in does not work with Firefox 2, and no support is planned for this browser with the New Plug-in.
Microsoft's Biggest Mistake (Score:5, Interesting)
Re:Microsoft's Biggest Mistake (Score:5, Insightful)
Parent
OS X Results - Spoiler Safari Wins (Score:5, Informative)
Well someone had to, so I ran the numbers for OS X. All of the below were on OS X 10.5.2 running on a MacBook:
I guess if you're a Safari or Firefox person you can look forward to some really fast Javascript performance either way.
Have they discovered threads yet? (Score:5, Insightful)
Re:Have they discovered threads yet? (Score:5, Interesting)
Who cares about Javascript performance when a single script running at any speed can freeze the entire browser?
Or a few Youtube tabs can slow the browser to a halt? (Hint: Firefox REALLY need to delegate Flash rendering to an external process, something I can renice 19. Just like how Konqueror uses nspluginviewer)
Parent
Re:Have they discovered threads yet? (Score:5, Insightful)
How about just implementing it? No magic needed. If the whole UI is slow and tends to lock up because it uses only a single thread, and the reason for that is that the language/runtime the UI is written in doesn't support threads, then you have three options:
- keep everything as it is, maybe pretend the problem doesn't exist
- rewrite in a language that does support threading
- extend Javascript resp. its runtime/libraries to support threading
The last one is probably the best option if you want to solve the problem, minimize the amount of work required to do so, and don't want to force all the plugin writers to use another language.Parent
Focusing on the wrong aspects (Score:5, Interesting)
What matters to me is the imperfect implementation of Flash (it's not really their responsibility but it is their problem) which often eats up 100% CPU from random flash objects or causes firefox to freeze. Another annoyance is Firefox being frankly poor at displaying large HTML files (when you go on websites with insanely large lists for instance). Where as IE and Opera display these as the page is downloaded. Firefox, for me, freezes, much like notepad will when you open a 2meg+ file . Sometimes it'll recover and display the page after a minute or so, sometimes I have to ctrl+alt+delete.
Re:Firefox Performance (Score:5, Insightful)
Flash has more and more accessibility support, but PDF is the Page Description Format. It's meant for print output and says nothing about the meaning of the contents of the document, just how they are supposed to look on the screen and on the page.
The good thing about tag-based formats like HTML is that--provided someone's following the standard--they can be fairly easily parsed regardless of the output format. With XHTML, you can read stuff on your screen, the blind can use screen readers, and web developers can easily extract and transform elements from a given document things are good as they are.
Finally, why do you think PDF = lean and mean? Acrobat proves that a PDF reader can get hideously bloated.
Parent
Re:Firefox Performance (Score:5, Informative)
I could have sworn that PDF was Portable Document Format. All your other points about it are correct though.
Parent
Re:JavaScript, huh. (Score:5, Insightful)
Parent
Re:Memory leak? (Score:5, Informative)
Parent
Re:Memory leak? (Score:5, Funny)
Once upon a time there was this OS named Windows Millennium Edition, also known as "the" in your examples above.
Parent
Re:OSX? (Score:5, Insightful)
Open-Source seems good for getting a job 90% finished and completely ignoring the 10% polish required to make it an app of the same quality as closed-source
Parent
Re:IE7 is just slow anyway (Score:5, Funny)
*For older versions of IE, 3 equals 1.
Parent
Re:About time (Score:5, Insightful)
Parent
Re:stalling (Score:5, Interesting)
Parent