Performance tests cleanups
commitc7fbc9989650aa923468cdbbed2ce12589cfdec9
authorAlberto Bertogli <albertito@blitiri.com.ar>
Sat, 28 Mar 2009 04:04:33 +0000 (28 01:04 -0300)
committerAlberto Bertogli <albertito@blitiri.com.ar>
Sat, 28 Mar 2009 04:13:20 +0000 (28 01:13 -0300)
tree34fcb01cfd145f89f355d1aa9e3e8d7d3cfb2f08
parentf5ba4fabcc031f353ab627fc59f7cd6d85230f41
Performance tests cleanups

This patch brings the performance tests more up to date, by doing several
cleanups:

 - Fix the Makefile so it's more correct when building and linking.
 - Remove the streaming test, and rename the parallel test to performance.
   The streaming test is exactly the same test as the parallel with one
   thread, so why keep both around?
 - Fix some comments and minor style changes.
 - Expand the help.
 - Mark the functions and static data as static.
 - Use proper types (unsigned long, ssize_t) instead of int.
 - Add checks for the return of some calls like malloc().
 - The blocksize is now passed in Kb, to make it easier to use bigger
   sizes.
 - Do not open the file O_SYNC, it makes no sense.
 - Run jfsck after all the writes, and verify it went well.

Signed-off-by: Alberto Bertogli <albertito@blitiri.com.ar>
.gitignore
tests/performance/Makefile
tests/performance/parallel.c [deleted file]
tests/performance/performance.c [new file with mode: 0644]
tests/performance/streaming.c [deleted file]