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

mbw - Memory BandWidth benchmark

Author

andras.horvath@gmail.com

memory bandwidth benchmark                        Apr 26, 2006                                            mbw(1)

Description

mbw determines available memory bandwidth by copying large arrays of data in memory.

Name

       mbw - Memory BandWidth benchmark

Options

       -q     Quiet; suppress informational messages.

       -a     Suppress printing the average of each test.

       -n <number>
              Select number of loops per test

       -t <number>
              Select  tests  to  be  run.  If  no  -t parameters are given the default is to run all tests. -t0:
              memcpy() test, -t1: dumb (b[i]=a[i] style) test, -t2: memcpy() with arbitrary block size

       -b <bytes>
              Block size in bytes for -t2.

       -h     Show quick help.

Synopsis

mbw [options] arraysize_in_MiB

Todo

       Multiple thread support.  Better configurability, including using getopt() for parsing arguments.

Usage

mbw will allocate two arraysize arrays in memory and copy one to the other.  Reported 'bandwidth' is  the
       amount of data copied over the time this operation took.

       Obviously  mbw  needs  twice arraysize MiBytes (1024*1024 bytes) of physical memory - you'd better switch
       off swap or otherwise make sure no paging occurs. Needless to say that it should not be  run  on  a  busy
       system.

See Also