Table of Contents

Name

mhz - calulate processor clock rate

Synopsis

mhz [-c]

Description

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

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.

See Also

lmbench(8) .

Author

Carl Staelin and Larry McVoy

Comments, suggestions, and bug reports are always welcome.


Table of Contents