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/
