tototototototot

All posts tagged benchmark

Benchmarks: Dictionary vs. Object vs. Array vs. LookupList

[Update: I put the code of the LookupList class at the bottom of the article] [BIG Update: there was an error in the LookupList class -> now it’s much slower than the rest] And another benchmark comparing various ways of getting an object for a key that is stored in a table. The key is […]

Benchmarks: Function Call

Another benchmark about function calls. There already is a really good article at JacksonDunstan.com but here I  focus on functions I’m particularly interested in: public function (direct / static / no argument / 4 args) function reference (direct / static / no argument / 4 args) overridden function function accessed from external object (direct / by […]

Benchmark: Flash Events vs. Signals

You may be wondering why a new benchmark for this. Well, I have three reasons: all of the other benchmarks I could find on internet were outdated I always prefer to test things for myself as I always test things for myself, I took some time to write a little benchmark tool that will be […]

ND2Dx benchmarks

Hi, I promised a few benchmarks of ND2Dx and here they are. The flash movie and the complete source code can be found at the end of this article. There are 4 benchmarks, comparing ND2Dx and Starling. Basically, I keep adding sprites, bitmaps or movieclips while the frame rate is equal or above 60 frames […]

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

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 […]

AS3 arrays against linked lists performance benchmarking

Let’s have a look at arrays vs. linked lists, and for what use. Here, the assumption is that we need to access a property and/or call a function from a lot of objects in a list at the highest speed possible. Let’s say we are making a game and we want to go through all […]

AS3 loops performance benchmarking

I just went through a post from polygonal labs that shows the difference in performance between several loops in AS3. If you go have a look at his post, you’ll see that the “for (i = 0; i < n; i++) {}” loop wins the first place. I have set up a benchmarking tool just […]