logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

milli, micro, nano, mb, kb - the lmbench reporting subsystem

Author

       Carl Staelin and Larry McVoy

       Comments, suggestions, and bug reports are always welcome.

(c)1998-2000 Larry McVoy and Carl Staelin            $Date:                                 lmbenchreporting(3)

Description

       Creating benchmarks using the lmbench timing harness is easy.  Since it is so easy to measure performance
       using  lmbench,  it is possible to quickly answer questions that arise during system design, development,
       or tuning.  For example, image processing

       There are two attributes that are critical for performance, latency and bandwidth, and  lmbench's  timing
       harness  makes it easy to measure and report results for both.  The measurement interface, benchmp is the
       same, but the reporting functions are different.  Latency is usually important  for  frequently  executed
       operations, and bandwidth is usually important when moving large chunks of data.

       voidmilli(char*s,uint64n)
              print  out  the  time  per  operation  in milli-seconds.  n is the number of operations during the
              timing interval, which is passed as  a  parameter  because  each  loop_body  can  contain  several
              operations.

       voidmicro(char*s,uint64n)
              print the time per opertaion in micro-seconds.

       voidnano(char*s,uint64n)
              print the time per operation in nano-seconds.

       voidmb(uint64bytes)
              print the bandwidth in megabytes per second.

       voidkb(uint64bytes)
              print the bandwidth in kilobytes per second.

Futures

       Development of lmbench is continuing.

Name

       milli, micro, nano, mb, kb - the lmbench reporting subsystem

See Also

lmbench(8), lmbench(3), timing(3), results(3)

Synopsis

#include``lmbench.h''voidmilli(char*s,uint64n)voidmicro(char*s,uint64n)voidnano(char*s,uint64n)voidmb(uint64bytes)voidkb(uint64bytes)

See Also