Nice AS3 Performance tester (loops, arrays, division, instantiations, constants, …)

1 Flares Twitter 0 Facebook 0 Google+ 1 Email -- Filament.io 1 Flares ×

When you look for something, there are always more chances that you don’t find it when you need it. It’s only weeks later, when looking for something else that you step on it. (some unwritten laws that I know most of you have encountered many times)

Anyway, here is a great open-source performance tester written in and for ActionScript 3:
http://businessintelligence.me/projects/performance_tester/performanceTester.html

It’s got tests on:

  • Array loops
  • Constant lookups
  • Single or multiple variables declaration
  • Increment
  • Division
  • Associations with objects, arrays and dictionary
  • Array vs. Vector
  • Loops
  • Different types of instantiations (“new Array()” vs. “[]”…)

And even a performance tester between two scripts that you can write directly into the app.

1 Flares Twitter 0 Facebook 0 Google+ 1 Email -- Filament.io 1 Flares ×

3 Comments

  1. This is nice, but each result is very inconsistent! I can run a test over and over with different results each time! It’s hard to find an average!

  2. the great “problem” of our lives I guess: inconsistency!
    ;)

    but it still shows you what is best to do in some cases: iterating with Integers instead of Numbers, etc…

  3. I would have to agree with trent. It is very difficult to find any kind of average. The results are inconsistent. There are points where every option on each test is faster than the rest. It\’s kind of annoying.

Leave a Comment