[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] WebKit 20-50% slower than Chrome/Minefield using large Float32Array Arrays

At 9:26 PM -0800 2/22/11, Vladimir Vukicevic wrote:
>----- Original Message -----
>> At 4:51 PM -0800 2/17/11, Kenneth Russell wrote:
>> >Just FYI, further optimizations are planned for typed arrays in V8.
>> >Currently certain optimizations are done for normal JavaScript arrays
>> >that aren't in place for typed arrays.
>> I'll say!
>> I just tested Chrome v10.0.648.82 and I'm getting 98 models steps per
>> second (without rendering) using regular arrays:
>> http://visual.local/seasons/earth/model2d-reg-arrays.html
>> and only 37 model steps per second using JavaScript Typed arrays:
>> http://visual.local/seasons/earth/model2d.html
>> However Chrome is blowing away Minefield: 4.0b12pre (2011-02-22)
>> Regular/Typed 13/12.2 and WebKit v79303 Regular/Typed: 24.7/14.5.
>I'm confused, what happened to "Minefield is reversed running about 41 fps using Typed and 28 fps using regular arrays"?  Did we regress something?

I restarted my computer and turned off all my normal extra startup processes (mysql server etc).

I ran each browser by itself and measured how fast the model ran with rendering to the visualization and the text array of temperature data turned off.

In every browser except for WebKit using Typed Arrays was slower.

Using JavaScript Typed Arrays: 

Using regular JavaScript Arrays:

                                      steps per second
browser/version                       Regular Arrays       Typed Arrays
Minefield 4.0b12pre (2011-02-22):     17.2                  13.3

WebKit 79303:                         15.5                  27.5

Chrome 9.0.597.102                   67.6                  42.2

Chrome 10.0.648.82 beta              109.8                  38.4

I ran my tests on a MacBook Pro, Mac OS X 10.6.6, Intel Core i& 2.66 GHz

The code is available here: https://github.com/stepheneb/seasons

More specifically:
You are currently subscribed to public_webgl@khronos.org.
To unsubscribe, send an email to majordomo@khronos.org with
the following command in the body of your email:
unsubscribe public_webgl