Revamp the PIPE test a bit. Use a calibration loop to make the test always
authorMatthew Dillon <dillon@dragonflybsd.org>
Wed, 28 Apr 2004 00:08:55 +0000 (00:08 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Wed, 28 Apr 2004 00:08:55 +0000 (00:08 +0000)
commit63929605a64ee8168eedd1539dcca3ef9dabbf31
treea3d4124434fd4646e6dc1b982b3574d834d79186
parent083a74027e0cd7c6ae628bd4bb7c2f604f9dad06
Revamp the PIPE test a bit.  Use a calibration loop to make the test always
run for a consistent period of time (around 6 seconds) no matter what the
specified block size is.  Allow a third 'label' argument to be specified
and reformat the MB/sec output to include the label and block size
to make it easier to pick off results for gnuplot.  Finally, use mmap()
instead of malloc() to create a cache-friendly read and write buffer to
reduce noise in the performance results.
test/sysperf/pipe2.c