Quote:> Hi,
> I am fairly new to Linux and C. I wanted to use the bogomip
> program to benchmark various kernels and systems. In the Bogomips-
> HOWTO the describe the program. I downloaded it from
> ftp.metalab.unc.edu. I have Redhat 5.1 and can't seem to compile
> bogomips. I got the gziped file and unzipped it. I did "make" and got
> the following answer:
> ', needed by `bogomips'. Stop.t `bogomips.c
> I tried using the gcc compiler and did "gcc bogomips.c " and got:
> /usr/include/delay.h: In function `udelay':
> In file included from bogomips.c:17:
> /usr/include/delay.h:47: `loops_per_sec' undeclared (first use this
> function)
> /usr/include/delay.h:47: (Each undeclared identifier is reported only
> once
> /usr/include/delay.h:47: for each function it appears in.)
> I have heard that old programs might have problems due to
> different compilers and libraries. This program, I believe, is
> from 1994.
> Could you please help solve this problem as I would
> like to use the bogomip benchmark program.
First, did the distribution contain a configure script? If so, run that
before compiling. Or read any README or INSTALL files that are in there.
Second, don't trust BogoMips as an absolute indication of system speed. In
fact, be quite suspicious of all benchmarks unless you know exactly what
they're doing. BogoMips is a quite small program, that these days tends to
sit inside the L1 cache of cpus and only uses integer instructions. So, it
doesn't give you any indication of how the: bus, harddiscs, RAM, FPU etc
affect the overall performance of your system.
Also, it should already be on your system. My 3.0.3 RedHat system (yes, yes,
well it is ARM you know...) has it. If you have a file /proc/cpuinfo it
should list in that the BogoMips rating amongst other things.
As an indication of how a small simple program will run on your box it's
fine. Otherwise it's just misleading. The best benchmark is to just use the
different machines with the applications you will be running and see which
performs best or quickest.
Shrike
--
John Bland Webmaster and Ph.D. Research Student,
M.Phys (Hons) Grad.Inst.P Condensed Matter Physics Department,
http://www.sliced.uk.eu.org/~shrike http://www.liv.ac.uk/~olmsg01/physics/
"OK! We're young, rich and full of sugar! What do we do?" - Simpsons