SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

Truespeed 0.1.0

A simple program to show how much CPU-power that new MP3-player really is hogging (for example, on my machine XMMS without any visualization takes 50% -- 60%, even though "top" says its only 23%).

When you start it it calibrates to the current load. You can re-calibrate it by clicking the fancy button. You should calibrate it without the program (or with the program in stand-by mode). The speed should be around 0%, if not, re-calibrate. Then look at the numbers during execution.

The "Maximum" toggle button recalibrates every time the current speed would become positive. Run this for a little while to get the maximum speed your machine can give.

Note that the speed may jump at -100% temporarily, as the program runs at nice level 20. Hence you should also not run RC5/Seti@Home/etc. while profiling.

The program currently offers three different speed tests, just to check whether, for example, on some system a program might hog the FPU but not the CPU. Commonly the tests yield identical results. The tests are as follows:

  • (int) multiplication:

    gulong a,b; a*=b;

  • (float) multiplication:

    gfloat a,b; a*=b;

  • (float) square root:

    gfloat a; a=sqrt(a)*sqrt(a+1);

Truespeed was hacked together in about 2 hours using glade. So it's not perfect. All patches and comments are welcome.

It's NOT supposed to be a benchmark, so don't come asking why your friend gets 134.734 Mrounds, when you have only 117.618.

Sampo Niskanen
sampo.niskanen@iki.fi
http://www.iki.fi/sampo.niskanen/

Truespeed homepage:
http://www.iki.fi/sampo.niskane/truespeed/


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.