simple benchmark

This is a discussion on simple benchmark within the C Programming forums, part of the General Programming Boards category; Hello! I want to test three computers in order to know which one has a better performance with floats operations. ...

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    33

    simple benchmark

    Hello! I want to test three computers in order to know which one has a better performance with floats operations. I found complex benchmarks that gives the FLOPS of a machine. But I don't need precision, I need a fast aproximation of the performance. Anyone know a simple benchmark for this problem? Or what kind of instructions should I manage to create my own simple benchmark?

    Thank You

    (excuse me for my english)

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,845
    Any "simple" benchmark can be manipulated into producing whatever answer you want. You may as well just roll a dice and make your choice based on that.

    One very crude "measurement" is to simply look at the clock speed of the processor. It might "win" on inline code, but if it has a deep pipeline and your code is heavy on the branches, then a slower processor with fewer pipeline stages will win (this really happened at a previous workplace, the slower laptops beat the desktops when running one particular program).

    Your choice of OS, how many drivers and services are loaded, what other programs are running can affect the stats.
    Your choice of file system, the performance of the physical disk, the state of fragmentation can affect the stats.

    Running the program you actually want to run, with a representative data set is the only way to come up with a good answer.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,274
    Quote Originally Posted by bartleby84 View Post
    Hello! I want to test three computers in order to know which one has a better performance with floats operations. I found complex benchmarks that gives the FLOPS of a machine. But I don't need precision, I need a fast aproximation of the performance. Anyone know a simple benchmark for this problem? Or what kind of instructions should I manage to create my own simple benchmark?
    I hate benchmarks. If you want to see how different machines compare when doing some task X, then try task X on each of the machines.

    Using some benchmark Y to try to predict how fast task X will run is pointless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 06:26 PM
  2. Simple message encryption
    By Vicious in forum C++ Programming
    Replies: 10
    Last Post: 11-07-2004, 11:48 PM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 04:00 PM
  4. Simple simple program
    By Ryback in forum C++ Programming
    Replies: 10
    Last Post: 09-09-2004, 06:48 AM
  5. Need help with simple DAQ program
    By canada-paul in forum C++ Programming
    Replies: 12
    Last Post: 03-15-2002, 08:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21