cvs commit: src/test/sysperf pipe2.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Tue Apr 27 17:10:06 PDT 2004
dillon 2004/04/27 17:08:56 PDT
DragonFly src repository
Modified files:
test/sysperf pipe2.c
Log:
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.
Revision Changes Path
1.4 +36 -22 src/test/sysperf/pipe2.c
http://www.dragonflybsd.org/cvsweb/src/test/sysperf/pipe2.c.diff?r1=1.3&r2=1.4&f=h
More information about the Commits
mailing list