[Laszlo-dev] performance measurement

Donald Anderson dda at ddanderson.com
Tue Feb 12 13:16:52 PST 2008


Henry,

I hope you have the headings reversed - looks like SWF9 takes longer...

On Feb 12, 2008, at 4:10 PM, Henry Minsky wrote:

> So, working around that compiler bug
> <canvas width="1000" height="600">
>    <handler name="oninit">
>        var i;
>        i = 1000;
>        var starttime;
>        starttime = getTimer();
>        while (i > 0) {
>            i--;
>            new lz.view(canvas, {x: i, y: i});
>        }
>
>        new lz.text(canvas,{x:0, y:20, text: 'elapsed time:  
> '+getTimer()});
>        var ctime;
>        ctime = getTimer() - starttime;
>        new lz.text(canvas,{x:0, y:30, text: ('initialize new views
> time: '+ctime )} );
>    </handler>
> </canvas>
>
>
>
> SWF8
> total elapsed time 137 msec
> creating views: 97 msec
>
> SWF9
> total elapsed time 450 msec
> creating views:  270 msec
>
> So it looks like a speedup of about three from swf8 to swf9 for view  
> creation.
>
>
>
>
> -- 
> Henry Minsky
> Software Architect
> hminsky at laszlosystems.com


--

Don Anderson
Java/C/C++, Berkeley DB, systems consultant

voice: 617-547-7881
email: dda at ddanderson.com
www: http://www.ddanderson.com






More information about the Laszlo-dev mailing list