AS3 Vector VS Array Benchmark (Read Access : int, String, Bitmap)

 

I have seen some benchmarks about Vector VS Array read access, but I wanted to test it myself. I have tested these data type : int, String and Bitmap.

 

Data type

The datatype used for filling the vector/array : int, String and Bitmap.

 

Loop style

20m = for(n:int=0; n<20000000; ++n)
100m = for(n:int=0; n<100000000; ++n)
(double loop)

Lire la suite