CPU Benchmark Program - Please Run and Post Results!

General FreeBASIC programming questions.
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

CPU Benchmark Program - Please Run and Post Results!

Postby KristopherWindsor » Nov 29, 2006 22:45

Please run this program, and post your average result speed, your real CPU speed, and your OS. I am especially curious about results from dual-core CPUs, and AMD processors. I set the program to get accurate results on 750mHz with Win 2000. Results seem to vary by up to 15mHz.

Code: Select all

' FreeBasic - CPU Speed Tester
' (C) 2006 i-TECH and Kristopher Windsor

Screenres 640, 480, 32,, 1
Dim t As Double, a As Double, sprite As Uinteger Ptr = imagecreate(100, 100), total As Double = 0
Sleep 1000

Print "Test 1...."
t = Timer: For a = 0 To 99999999: Next a: t = Timer - t
Print Int(750 * 1.7 / t); " mHz"
total += (750 * 1.7 / t)

Print "Test 2...."
t = Timer: For a = 0 To 99999: Circle (320, 240), a / 500, &HFFFFFFFF: Next a: t = Timer - t
Print Int(750 * 6.6 / t); " mHz"
total += (750 * 6.6 / t)

Print "Test 3....";
t = Timer: For a = 0 To 99999: Locate , 12: Print Time$;: Next a: t = Timer - t
Print: Print Int(750 * 3.2 / t); " mHz"
total += (750 * 3.2 / t)

Print "Test 4...."
Get (100, 100) - (199, 199), sprite
t = Timer: For a = 0 To 9999: Put (100, 100), sprite, alpha, 100: Next a: t = Timer - t
Print Int(750 * 1.8 / t); " mHz"
total += (750 * 1.8 / t)

Print
Print "Results..."
Print Int(total / 4); " mHz"
Sleep: System
Last edited by KristopherWindsor on Oct 20, 2007 19:19, edited 1 time in total.
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Postby KristopherWindsor » Nov 29, 2006 23:03

My 2.8 gHz Pentium D scored almost 4 gHz on Test 2, but averaged 2.5 gHz.
counting_pine
Site Admin
Posts: 6229
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Postby counting_pine » Nov 29, 2006 23:04

On my PC the test reports 360 millihertz.
(I'm on a 2.6GHz Pentium 4 running Windows XP.)
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Postby KristopherWindsor » Nov 29, 2006 23:10

counting_pine wrote:On my PC the test reports 360 millihertz.
(I'm on a 2.6GHz Pentium 4 running Windows XP.)


I'm sorry if you got the old version of my program. The new one divides by t instead of multiplying it. :-|

I hope you meant megahertz, but it should be more accurate than that?
Mlok
Posts: 123
Joined: Mar 08, 2006 1:07
Location: Czech Republic
Contact:

Postby Mlok » Nov 29, 2006 23:15

I got 2224 MHz on my 1.6 GHz AMD Sempron.
I wonder what is this program trying to return? You canť get correct CPU speed like this, since each processor architecture has different "power per Hz"
counting_pine
Site Admin
Posts: 6229
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Postby counting_pine » Nov 29, 2006 23:17

It's up to 1857mHz now.
(megahertz is MHz, millihertz is mHz. The prefixes are capital from 10^6 upwards: http://en.wikipedia.org/wiki/Mega :)
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Postby KristopherWindsor » Nov 30, 2006 0:08

I got 2224 MHz on my 1.6 GHz AMD Sempron.
I wonder what is this program trying to return? You canť get correct CPU speed like this, since each processor architecture has different "power per Hz"


I figured that my 750 <||*M|||*> Hz was getting 1/3 of the desired frame rate for a game I haven't really started yet, so I estimated that 2GHz would be necessary to run this game well. But to run the game well, a computer would actually have to be rated 2+ GHz according to performance, regardless of the real CPU speed.

Your results show that your 1.6GHz CPU has 3x the performance compared to my 750MHz, but I would not have expected that! So the program I am writing may work fine on 1.6GHz, and not need 2GHz. Maybe there is hope for the new 1.6GHz laptops, too? :-)

It's up to 1857mHz now.


This implies that a 1.6GHz AMD processor can outperform your 2.6GHz Intel. Is AMD that much better, or is AMD just better for some things that this program is testing? Are the FB EXEs optimized for Intel or dual-core processors?

(megahertz is MHz, millihertz is mHz. The prefixes are capital from 10^6 upwards: http://en.wikipedia.org/wiki/Mega :)


I think I'll just spell everything out now. :-P But what is MHZ? :-P
Mysoft
Posts: 779
Joined: Jul 28, 2005 13:56
Location: Brazil, Santa Catarina, Indaial (ouch!)
Contact:

Postby Mysoft » Nov 30, 2006 1:54

what is mhz? mhz is (1024*1024) cycles per second ;x XDDD

and well on my atlhon 1600+ (underclocked) running at 1.4ghz
result is 1450 mhz..
axipher
Posts: 891
Joined: Dec 27, 2005 16:37
Location: Sudbury,Ontario
Contact:

Postby axipher » Nov 30, 2006 2:12

My result was 2331 mHz with 3060 mHz on test 2.

Running Intel Pentium M, 1.7 GHz, 1 GB RAM
Direct X 9, 128 MB Video RAM, integrated video,
all on a laptop.
1000101
Posts: 2556
Joined: Jun 13, 2005 23:14
Location: SK, Canada

Postby 1000101 » Nov 30, 2006 7:46

Mysoft wrote:what is mhz? mhz is (1024*1024) cycles per second ;x XDDD

and well on my atlhon 1600+ (underclocked) running at 1.4ghz
result is 1450 mhz..


mHz = 10^-3 Hz
MHz = 10^6 Hz

It's not a power of two, it's a factor of 10.
cha0s
Site Admin
Posts: 5317
Joined: May 27, 2005 6:42
Location: Illinois
Contact:

Postby cha0s » Nov 30, 2006 8:40

421 Mhz, i have a 450 Mhz, on Win2k
sir_mud
Posts: 1401
Joined: Jul 29, 2006 3:00
Location: US
Contact:

Postby sir_mud » Nov 30, 2006 9:35

I think this is a little off on Linux, i got 65mHz on a 2.2GHz processor.
MichaelW
Posts: 3500
Joined: May 16, 2006 22:34
Location: USA

Postby MichaelW » Nov 30, 2006 10:34

You didn’t specify which AMD processors, so I tested on an 11-year old 112MHz K5, running Windows 2000 SP4. I thought the program had hung several times, but I eventually got:

Test1 47MHz
Test2 27MHz
Test3 126MHz
Test4 27MHz
Results 57Mhz

My 2.8 gHz Pentium D scored almost 4 gHz on Test 2, but averaged 2.5 gHz.

2500 / 57 = 43.86, not really that much considering a dual-core processor running with a 25 times higher clock, with 50+ times the number of transistors, much bigger and faster L1 caches, and an 11-year technology advantage.
Mlok
Posts: 123
Joined: Mar 08, 2006 1:07
Location: Czech Republic
Contact:

Postby Mlok » Nov 30, 2006 12:18

This implies that a 1.6GHz AMD processor can outperform your 2.6GHz Intel. Is AMD that much better, or is AMD just better for some things that this program is testing? Are the FB EXEs optimized for Intel or dual-core processors?

1.6 GHz Sempron has a marketing name "AMD Sempron 2600+" because its performance should be rougly equal to Intel's processors of this frequency.
TheMG
Posts: 376
Joined: Feb 08, 2006 16:58

Postby TheMG » Nov 30, 2006 19:45

3278mhz (3.2 ghz). I have a 2.4 AMD Anthlon 64 3800+.

Wait, Mlok, does that mean mine is as good as a 3.8ghz Pentium?!

Return to “General”

Who is online

Users browsing this forum: No registered users and 14 guests