Re: Number of operations per function

2016-12-23 Thread flex capacitor
Thanks. I read those blog posts in the past but had missed that one. So when a company advertises last years device can do 1 teraflop and this years device can do 2 teraflops that doesn't mean twice as fast or twice as many FPS? It's only twice as fast if they are doing the same exact operation as

Re: Number of operations per function

2016-12-23 Thread Vincent
Hi, I don't know if it can be useful but Jackson Dunstan wrote several articles about loop speed : http://jacksondunstan.com/articles/358 Cheers Le 22/12/2016 à 22:20, flex capacitor a écrit : I have a case where I can write a function a few different ways and since Flash Player doesn't prov

Re: Number of operations per function

2016-12-22 Thread Alex Harui
Assuming you only really care about performance, I would suggest writing a test harness that runs these patterns 100,000 times (or more) and run at least 5 timings and look for convergence in the numbers. Things may have changed since I worried about CPU cycles in detail, but for Intel X86 CPUs, a

Number of operations per function

2016-12-22 Thread flex capacitor
I have a case where I can write a function a few different ways and since Flash Player doesn't provide a microtime only getTimer() I'm trying to find a way to get the number of operations that are occurring in each different method. For example, I have 3 different ways to get the results I want f