On 8/26/07, Mark Winterhalder <[EMAIL PROTECTED]> wrote:
> On 8/26/07, zwetan <[EMAIL PROTECTED]> 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.
>

humm... I don't see what haxe with an .abc target would bring ?
haxe, avmplus, flash player,... they all need an initialization time

the overhead you're talking about is already substracted,
basically getTimer() just give you the time elapsed since the flash
player started,
using 'time' would not really be more accurate, just more precise,
and could give you the result of more tiny difference within 4ms
(which the getTimer can not really do).

but my point here is if you run a test that last 100ms, be it 96ms or 104ms
is not really the problem, as all your other test have the same
limit/difference in precision.



> 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.
>

hum ... I don't agree here
on the 3 stats I gave, the only param changed is the number of iterations
100.000 / 1.000.000 / 10.000.000
so sure the more iterations the more time a function execution gonna take
but the results stay consistent

whatever the system spend time on other stuff, GC kicked, etc.,
the optimized2 test is always executed faster than the standard test,
the duration numbers sure can be different (system busy, other system,
RAM, etc.).

but implementing a system time function for avmplus being not that difficult,
I'll look into that, see if it bring more infos
but mind also that avmplus !== the flash player

zwetan

_______________________________________________
osflash mailing list
[email protected]
http://osflash.org/mailman/listinfo/osflash_osflash.org

Reply via email to