Tuesday, September 02, 2008

Google Chrome: A first little test with highly complex AJAX/Javascript web applications

Google Chrome - what is it's real performance for highly AJAX-based web applications?

Some five hours ago Google introduced Google Chrome and put it on their site for download. Google Chrome is a stand-alone web browser and therefore has to compete with browsers like Internet Explorer, Firefox, Opera and Safari. Here at first a core Javascript test (as stated in a previous Javascript-post):

Chrome 0.2FF 2.0.0.14FF3 RC1IE 7.0.5730.13Opera 9.27Safari 3.1.1
3471,826271,45447,040846,212358,26318,8
Time in milliseconds the browsers needed in this performance test

But Google Chromes main goal is (according to Google) an other goal than that of other browsers: Highly AJAXed Javascript "web applications" shall run faster and more safe with Google Chrome, thus enabling a new era of web based applications like Google Maps, Google Mail or others. Time to look at speed and compatibility issues with more complex applications, even though the browser is stated as a "Google beta". Again.

YAWB or not YAWB, that is the question.

Yet Another Web Browser? Or: Why is Google in the web browser market? Because that is Googles business, the idea fits. Why not presenting the browser as a gift and earning money with the applications they run?

Internas and testing environment

Time to do a kind of real life test using an internal application that makes heavy use of Javascript and AJAX. At the moment Google Chrome is too much of an early bird to do this excessively, but we can have a look under the hood and run a fairly complex application on it.

The new features include
  • A new Javascript Engine called V8 is in use.
  • Better performance through compiled Javascript, it is compiled into machine code and not necessarily always interpreted.
  • The new Javascript VM has a better garbage collection included to preserve memory.
  • Browser tabs or new browser windows run in dedicated threads.
The testing application has some thousands of lines of self-written Javascript-code and relies on Prototype and other frameworks. It (re)opens different "windows" as DOM-elements and is able to switch through them via ctrl-tab and shift-ctrl-tab. Data is drawn from the background via AJAX, the usability allows drag-and-drop of single (or multiple) elements from one window into others. The application "runs" on IE, Firefox and Safari. Pretty complex stuff for a first test.

Compatibility will be the key...

What use is a new browser if the sites you want to visit will not work with it? Right, none. So the browser has to be as compatible as possible. I was fairly surprised and impressed as I saw the application running smooth and dandy. There was no itch regarding the Javascript-compatibility, every function I tested simply worked. The whole Javascript-code ran without the need to apply a single patch or something similar from our side. You know the moments where you hope "ah, come on, it will work out somehow. I believe, I strongly believe..." and you run it and it works out? That was one of that rare moments. Impressive.

... and performance will be the door-opener.

So it seems to be pretty compatible, right, but the second side is, is it faster, more useable than other browsers? The rendering engine seems to be partly from the webkit.org - project, rendering was pretty fast and compatible (to say the pages looked like in other browsers). From the look and feel of the thing I would say Google Chrome is at least one of the fastest rendering browsers if not the fastest, anyway.

And the Javascript-performance was astonishing (see here for numbers of a normal Javascript test suite). The application, running pretty fast in Firefox 3 and Safari 3.1 got a little extra speed-kick. That way it really feels like a real application on the computer rather than rendered web results. The clear separation of tabs and windows into threads does its additional work: Because no tab has to wait until an other tab releases the processor you have the feeling that it works faster or smarter.

So is it worth the hassle?

I think it is worth giving it a try. I do not think that I will use it yet as a browser-user, because I need my Firefox-plugins or IE-updating. But I will definitely test it with/for Javascript and AJAX-driven pages and our own developments. The gain in there is definitely worth the hassle.

Labels: , , , , , ,

 

7 Comments:

Blogger Peter said...

Interesting result, but why are you still using older Firefox 3 Rc1, and Safari 3.1.1, and Opera 9.27?

8:44 PM  
Blogger Georgi said...

Hello Peter,

the performance tests were made by me a little time ago and just copied in here and I wanted to get this blog out there as fast as possible. This way I did not update the newest versions and repeat the test, but I only installed Google Chrome on the testing machine.

Here is the origin blog (with the origin performance tests): http://goit-postal.blogspot.com/2008/05/javascript-core-performance-in-actual.html .

6:33 AM  
Anonymous The Fuzz said...

great browser like it a lot

7:05 AM  
Blogger gfh said...

One night,wow gold a Delta twin-engine puddle final fantasy gil jumper was flying somewhere world of warcraft power leveling above New Jersey.maplestory mesos There were five people on board:flyff power leveling the pilot, Michael Jordan,Bill Gates, the Dali Lama,2moons power leveling and a hippie. Suddenly,Maple Story mesos an illegal oxygen generator exploded loudly 2moons gold in the luggage compartment, age of conan power leveling and the passenger cabin began Atlantica gold to fill with smoke. The cockpit doorflyff gold opened, and the pilot burst into the compartment. Atlantica power leveling"Gentlemen,knight online power leveling he began, "I have good news knight online power leveling and bad news. World of warcraft Power Leveling The bad news is SilkRoad Power leveling that we're about to crash in New Jersey. The good news archlord power leveling is that there are archlord gold four parachutes,buy last chaos gold and I have flyff power leveling one of them

12:47 AM  
Blogger King Bayern Munich said...

This is a great article, supplies the useful information for me, thanks in this
soft sofa
Modern-stone-sculpture
billiards
Long span shelving
baby stroller
oil paintings
outdoor ceramic tiles
casual shoes
oil paintings

12:18 AM  
Anonymous game reviews said...

Wonderful information, I will save this and show it to my friend, she is huge fan of this. It's been a pleasure to read your post.
Hannah from SheepArcade
If you like to play games, visit sheep arcade and play poker games and much more free games.

2:05 PM  
Blogger luck said...

uggs clearance Here let us look at the foreigners in this assessment: "A nine worst U.S. Forbes assessment models.classic short ugg boots"Note: The following models are the U.S. version, with domestic sales model specifications may vary. Uggs Outlet U.S. data from MSN, Forbes and Consumer Reports. 2011 SmartFortwo Even small cars popular in Europe, Smart fortwo is also called heterogeneous.Ugg Bailey Button It is too small, length only is the Audi A6L (picture quotation parameters Forum) half of the multi-point, ugg boots clearance and allowed only two seats.

10:36 PM  

Post a Comment

Links to this post:

Create a Link

<< Home