mersenneforum.org  

Go Back   mersenneforum.org > Great Internet Mersenne Prime Search > Hardware

Reply
 
Thread Tools
Old 2008-06-15, 10:04   #1
roger
 
roger's Avatar
 
Oct 2006

10416 Posts
Default How to find out CPU speed

How do you find out the speed of your computer, not the MHz/GHz, but operations per second?

roger
roger is offline   Reply With Quote
Old 2008-06-15, 11:04   #2
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2×5,393 Posts
Default

Quote:
Originally Posted by roger View Post
How do you find out the speed of your computer, not the MHz/GHz, but operations per second?

roger
You write a program that executes a specified number of operations and time how long it takes to run.

The speed is critically dependent on many factors, including precisely which operations you wish to measure, their pattern of memory accesses, the order in which the operations are excuted and many more.


Pau
xilman is offline   Reply With Quote
Old 2008-06-15, 11:53   #3
ATH
Einyen
 
ATH's Avatar
 
Dec 2003
Denmark

61268 Posts
Default

You can get a "Prime95 measurement" using the formulas for how many GFLOP an LL test is and divide with your average iteration time:
http://www.mersenneforum.org/showthread.php?t=10309

Exponent 10.18M to 12.65M: 0.06747706 GFLOP/iteration
Exponent 12.65M to 15.07M: 0.08216965 GFLOP/iteration
Exponent 15.07M to 17.55M: 0.09722501 GFLOP/iteration
Exponent 17.55M to 20.05M: 0.10883397 GFLOP/iteration
Exponent 20.05M to 24.93M: 0.14075860 GFLOP/iteration
Exponent 24.93M to 29.69M: 0.16941821 GFLOP/iteration
Exponent 29.69M to 34.56M: 0.20188702 GFLOP/iteration
Exponent 34.56M to 39.50M: 0.22238408 GFLOP/iteration
Exponent 39.50M to 49.10M: 0.29747952 GFLOP/iteration
Exponent 49.10M to 58.52M: 0.36096600 GFLOP/iteration

Close all other programs, put UsePrimenet=0 and StressTester=1 in prime.txt/prime.ini and choose an exponent and put on worktodo.ini/worktodo.txt, for example:
AdvancedTest=37033333

Let it run for 10-15min and check the average iteration time, for example 57ms, you get your GFLOPs: 0.22238408(GFLOP/ite) / 0.057(sec/ite) = 3.90 GFLOP/s. You can try 2-3 different exponent from different ranges to see if its consistent. For example for my P4 Prescott 3.4Ghz I got between 3.70 and 3.96 GFLOP/s, so its not super accurate but it gives you a hint.

Last fiddled with by ATH on 2008-06-15 at 11:57
ATH is offline   Reply With Quote
Old 2008-06-15, 12:43   #4
Mini-Geek
Account Deleted
 
Mini-Geek's Avatar
 
"Tim Sorbera"
Aug 2006
San Antonio, TX USA

17·251 Posts
Default

Quote:
Originally Posted by ATH View Post
You can get a "Prime95 measurement" using the formulas for how many GFLOP an LL test is and divide with your average iteration time:
http://www.mersenneforum.org/showthread.php?t=10309

Exponent 10.18M to 12.65M: 0.06747706 GFLOP/iteration
Exponent 12.65M to 15.07M: 0.08216965 GFLOP/iteration
Exponent 15.07M to 17.55M: 0.09722501 GFLOP/iteration
Exponent 17.55M to 20.05M: 0.10883397 GFLOP/iteration
Exponent 20.05M to 24.93M: 0.14075860 GFLOP/iteration
Exponent 24.93M to 29.69M: 0.16941821 GFLOP/iteration
Exponent 29.69M to 34.56M: 0.20188702 GFLOP/iteration
Exponent 34.56M to 39.50M: 0.22238408 GFLOP/iteration
Exponent 39.50M to 49.10M: 0.29747952 GFLOP/iteration
Exponent 49.10M to 58.52M: 0.36096600 GFLOP/iteration

Close all other programs, put UsePrimenet=0 and StressTester=1 in prime.txt/prime.ini and choose an exponent and put on worktodo.ini/worktodo.txt, for example:
AdvancedTest=37033333

Let it run for 10-15min and check the average iteration time, for example 57ms, you get your GFLOPs: 0.22238408(GFLOP/ite) / 0.057(sec/ite) = 3.90 GFLOP/s. You can try 2-3 different exponent from different ranges to see if its consistent. For example for my P4 Prescott 3.4Ghz I got between 3.70 and 3.96 GFLOP/s, so its not super accurate but it gives you a hint.
Athlons always do worse than P4s of similar power for Prime95/LLR. I'm getting about 2.6 GFLOPS on one core, but I think it's an underestimate because of the Athlon/P4 difference. I'm using a 2.5 GHz Athlon X2 4800+.
Mini-Geek is offline   Reply With Quote
Old 2008-06-15, 22:15   #5
ixfd64
Bemusing Prompter
 
ixfd64's Avatar
 
"Danny"
Dec 2002
California

96116 Posts
Default

You need a benchmarking program, such as Sandra.
ixfd64 is online now   Reply With Quote
Old 2008-06-15, 23:46   #6
R.D. Silverman
 
R.D. Silverman's Avatar
 
Nov 2003

22×5×373 Posts
Default

Quote:
Originally Posted by roger View Post
How do you find out the speed of your computer, not the MHz/GHz, but operations per second?

roger
Read R. Silverman "Exposing the Mythical MIPS Year", IEEE Computer.

The short answer is: you CAN'T. #ops/sec is highly variable; it depends
on the instruction mix. You can have two machines, A & B, and two
piecs of code X & Y. You can make machine A look faster when running X
and machine B look faster when running Y.
R.D. Silverman is offline   Reply With Quote
Old 2008-06-16, 06:32   #7
henryzz
Just call me Henry
 
henryzz's Avatar
 
"David"
Sep 2007
Cambridge (GMT/BST)

588710 Posts
Default

Quote:
Originally Posted by R.D. Silverman View Post
Read R. Silverman "Exposing the Mythical MIPS Year", IEEE Computer.

The short answer is: you CAN'T. #ops/sec is highly variable; it depends
on the instruction mix. You can have two machines, A & B, and two
piecs of code X & Y. You can make machine A look faster when running X
and machine B look faster when running Y.
what about when using an equal number of every instruction
henryzz is offline   Reply With Quote
Old 2008-06-16, 07:27   #8
xilman
Bamboozled!
 
xilman's Avatar
 
"π’‰Ίπ’ŒŒπ’‡·π’†·π’€­"
May 2003
Down not across

2×5,393 Posts
Default

Quote:
Originally Posted by henryzz View Post
what about when using an equal number of every instruction
You can but:

a) it's not clear that this measure gives much guidance on how fast a machine is when doing useful work and

b) as I noted earlier, the order of the instructions and their memory usage pattern can have a profound effect on the time taken to be executed. It's certainly possible to have times varying by a factor of 2 or more purely by re-arranging exactly the same instructions ito the optimal and pessimal ordering.


Paul]
xilman is offline   Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lap Top Suddenly 1/4 speed. petrw1 Hardware 35 2015-11-07 11:36
Where can I find a Reverse and Add program? I can't find any! Stargate38 Programming 18 2015-07-10 06:08
Different Speed in different OS's Dubslow Software 11 2011-08-02 00:04
TF speed Unregistered Information & Answers 10 2011-07-27 12:34
Changes to the speed of light. Flatlander Homework Help 67 2011-01-22 13:37

All times are UTC. The time now is 22:22.


Fri Aug 6 22:22:37 UTC 2021 up 14 days, 16:51, 1 user, load averages: 3.39, 3.35, 3.19

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.