In case Flash no longer exists; a copy of this site is included in the Flashpoint archive's "ultimate" collection.

Dead Code Preservation :: Archived AS3 works from wonderfl.net

What is your CPU performance?

Get Adobe Flash player
by makc3d 09 Nov 2010

    Talk

    ProjectNya at 09 Nov 2010 08:30
    0.13
    zob at 09 Nov 2010 08:57
    0.20, 0.18, 0.17, 0.18, 0.14, 0.18, 0.21, 0.15, 0.15, 0.20; average = 0.176, on bootcamp 2 CPUs XP SP3; OSX 1.6.3, 2.67Hz Quad, GT240 1G 128bit
    makc3d at 09 Nov 2010 09:09
    looks like this test fails :( good test wouldn't show that much difference.
    Hasufel at 09 Nov 2010 09:58
    0.13 0.13 0.13 0.13 0.13 0.13 0.13! OSX 10.6.4, core 2@2.4Ghz/4gb ram
    Hasufel at 09 Nov 2010 10:09
    0.74 0.73 0.74 0.74 0.74 0.73 0.74 0.74 on Atom z520 @1.33Ghz/2gb ram
    devon_o at 09 Nov 2010 14:28
    .11 - .12 on Win7 64 bit 2.67Ghz/8g ram
    Thy at 09 Nov 2010 18:37
    .36
    keim_at_Si at 09 Nov 2010 21:23
    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.
    PESakaTFM at 10 Nov 2010 00:33
    0.12 consistently. Model Name: iMac Model Identifier: iMac11,3 Processor Name: Intel Core i5 Processor Speed: 2.8 GHz Number Of Processors: 1 Total Number Of Cores: 4 L2 Cache (per core): 256 KB L3 Cache: 8 MB Memory: 8 GB Processor Interconnect Speed: 4.8 GT/s
    PESakaTFM at 10 Nov 2010 00:39
    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.
    PESakaTFM at 10 Nov 2010 01:57
    1.67 on my friend's Nexus One
    Hasufel at 10 Nov 2010 03:24
    between 1.70 and 1.65 on HTC Desire @1ghz Android 2.2
    Hasufel at 10 Nov 2010 03:32
    0.11 0.11 0.11 0.11 0.11 0.11 on OSX 10.6.4, core 2@2.86Ghz/4gb ram
    zob at 10 Nov 2010 06:24
    0.14 x 10, average = 0.14 @ Quad Q6600 2.4; shouldn't test this on a bootcamp
    bradsedito at 10 Nov 2010 07:11
    .13 || .13 || .14 || .13 || .13 || .13 || .13 || .13 || .13 || .13 , respectively. OS X Snow Leopard v10.6.4 running on MacBook Pro 2.66 Intel Core 2 Duo 4GB 1067 MHz DDR3 BradSedito
    zob at 10 Nov 2010 14:45
    1.19, 1.19, 1.18, 1.18, 1.18, 1.18, 1.18, 1.18, 1.17, 1.20 @Samsung GT-P1000
    keim_at_Si at 10 Nov 2010 18:59
    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 ?
    makc3d at 10 Nov 2010 20:47
    @keim_at_Si maybe I have debug player there, but maybe I dont and then I have no ideas :( that's win7 there, what do you have?
    keim_at_Si at 11 Nov 2010 04:57
    My wife's and mine are newest standard player on mini notebook with windows XP. I suspect that the debug player makes slower.
    makc3d at 11 Nov 2010 07:15
    Hey everyone who's reading this, please do http://wonderfl.net/c/5lvC? this takes 1 to 3 minutes but gives much more meaningfull statistics, THANKS

    Tags

    Embed
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;
		}
	}
}