[osflash] AS3 optimizations page created

Mark Winterhalder mark13 at gmail.com
Sun Aug 26 04:11:46 PDT 2007


On 8/26/07, zwetan <zwetan at gmail.com> wrote:
> iterating x times to execute a function is not a real statistic,
> you need to run that time sample multiple time if you want to obtain
> consistent results

I don't know about Windows, but on Linux (and quite possibly OSX) you
can use 'time' as they did in the thread you linked to. It would be
much more accurate, but it also would include initialization of the
player (which is why I asked for an .abc compile target for haXe a
while ago, to test in avmplus directly). However, this overhead could
be measured as well and subtracted.

If you use getTimer to measure the duration, the fastest test run is
the one to look at. Slower results only mean that the system spent
time on other stuff while running the test, or the GC had kicked in.

Mark



More information about the osflash mailing list