MHZ(8) | LMBENCH | MHZ(8) |
mhz - calulate processor clock rate
mhz [-c]
mhz calculates the processor clock rate and megahertz. It uses an unrolled, interlocked loop of adds or shifts. So far, superscalarness has been defeated on the tested processors (SuperSPARC, RIOS, Alpha).
Output format is either just the clock rate as a float (-c) or more verbose
39.80 Mhz, 25 nanosec clock
mhz is described more completely in ``mhz: Anatomy of a microbenchmark'' in Proceedings of 1998 USENIX Annual Technical Conference , June 1998.
lmbench(8).
Carl Staelin and Larry McVoy
Comments, suggestions, and bug reports are always welcome.
$Date$ | (c)1994-2000 Carl Staelin and Larry McVoy |