0.27 @ firefox plugin on pentium4(3.00GHz)
0.78 @ firefox plugin on Atom z520(1.33GHz)
0.78 @ ie8 activeX on Atom z520(1.33GHz)
I really want to know how about it on android.
Anywhere between 2.23 and 3.50 on my Motorola Droid (Android 2.2). It's a first gen Droid though so I'm not surprised. I bet it would be a lot faster on a Droid X or Droid Pro.
Thanks PESakaTFM, Hasufel and zonnbe ! That's what I'm interested in.
0.58 @my wife's PC (Atom N270 1.6GHz)
... same as makc3d's wife's but twice faster...why ?
package {
import flash.display.BitmapData;
import flash.display.Sprite;
import flash.geom.Rectangle;
import flash.text.TextField;
import flash.utils.getTimer;
/**
* What is your CPU performance?
* Please run few times and report min/max values.
* @author makc
*/
public class Foo extends Sprite {
public function Foo () {
var tf:TextField = new TextField;
tf.text = cpu ().toFixed (2);
addChild (tf);
}
/**
* Quick CPU performance test.
* @return your CPU performance (~1 for Intel Atom N270 1.6GHz)
*/
public function cpu ():Number {
// test using some CPU intensive operation
var b:BitmapData = new BitmapData (2879, 2879, false, 0);
var n:int = 7;
var times:Vector.<int> = new Vector.<int> (n), avg:Number = 0, t:int;
for (var i:int = 0; i < n; i++) {
t = getTimer ();
b.getColorBoundsRect (2, 2);
times [i] = getTimer () - t; avg += times [i];
}
b.dispose ();
avg /= n; t = times [0];
// find median time
for (i = 1; i < n; i++) {
if (Math.abs (times [i] - avg) < Math.abs (t - avg)) {
t = times [i];
}
}
// my wife's HP Mini 2140 fluctuates around 200 ms in sa player
return t / 200.0;
}
}
}