Google Chrome VS FireFox 3 – Crash / Stress Test
Here i want to stress test on both most popular browser in the world – Google Chrome and Firefox 3. I create a simple html code to test on both browser.
Here is the source code
<html>
<body>
<textarea id="test" cols=80 rows=50></textarea>
<br/>
<script>
var i;
for(i =0; i<10000; i++)
{
document.getElementById("test").value += (i + " - http://www.mkyong.com\n");
}
</script>
</body>
</html>Above code just create a textarea and append string into the textarea 10000 time. Saved it as html file and open it with FireFox 3 and Google Chrome to test it.
1. FireFox 3
Firefox 3 will hanging and display as not responding. I cant even access others tabs. It seem hanging forever , i have to use task manager to kill it manually.
Google Chrome
Google Chrome will hanging as well, however it allow me to access other tabs, Only the tab running the stress test code will not responding, other function working very well without any interruption.
After few seconds, Google Chrome seem detect something wrong in my code, it just stop the stress test code and display a user friendly error message as following
Google Chrome VS FireFox 3 – Crash Test Result
Google Chrome WON! it can handle abnormal and huge data loading very efficiently and it will stop with a friendly error message as well. While Firefox 3 just hanging there and wait me to kill it.
Actually Google Chrome is using multi-threads or multi processors concept, every single tab consider as one particular process, however all traditional browser is using single-thread concept. This is why Google Chrome can be more stable then other browser, i believe all browsers will implement this multiple thread browser idea future. Google proved itself as a leader in web standard again.



Hi mkyong and thanks for the test & results
I haven’t tried using Google Chrome yet, i installed it a while ago just to have a look at it but it seemed to similar to firefox that i said “Hey, why should i stress myself over something that is so similar so basically i assumed that making something compatible for firefox would automatically make it compatible for chrome as well, i was also influenced by the chrome user base which had that time wasn’t that big (not sure about now).
I’m having second thoughts now about Chrome and will be installing it over again.
lol, sorry in my previous comment i accidentally wrote your name mkyong instead of mine, hope you can change that?
Works fine using newest Mozilla Firefox
http://img641.imageshack.us/img641/9498/79891243.png
Thanks for the information, Firefox has improved a lot since this article is published.
How can you say that chrome won? Actually its a problem of google chrome that for huge amount of data it crashes. I was trying to load a web page of web application which contain huge data, but it crash on google chrome. On the other hand it works fine on firefox as well as on IE 7. It takes some time though.
Problem: I think that firefox keeps adding record one by one. On the other hand chrome executes everything first and then try to render it. So if huge data is there chrome can not handle all data and at point it crashes. It is just my observation and can be wrong.
what i mean is Google Chrome can handle large data more efficiently, at least it will stop process it when your browser is unable to handle such a huge data volume.
Do you have any other code that can block mozilla from working ?
Thanks
I copied the code to a local file and opened it in Opera 10, build 4116 on linux. Opera does not have any problems showing the page, although it does slow down and uses lots of resources. I can see the page being built a few lines at a time, but I’m writing this comment in another tab.
I stopped it after 3000 lines though, because it was boring.
Opera 10 look like very stable, thanks for info, i will give a try
I downloaded and using Opera 10 alpha version to test above javascript.
Result
———
Opera 10 seem keep on loading forever, even it’s still allow user to do other tasks like open a new tab and surf web, but it is very very slow…..
Performance
————–
Opera 10 is slight better than FireFox 3, but i believe Opera 10 still using single-thread concept, so performance is lose to Google Chrome.
press Shift+Esc to get acces to the task manager of Chrome