To build the solution, run make ex14_1
.
The command options are:
- -n number of files to create
- -s create files in sequential order
- -v - shows more detailed output
- target directory
Statistics collected:
- File system type
- Create files in random (r) or sequential (s) order
- Number of files created
- Wall clock time in seconds
- User time in seconds
- System time in seconds
Sample run with random order of creation:
time ./ex14_1 -n 1000 test
0x03E706FF r 1000 2.859000 0.109000 2.750000
real 0m 5.12s
user 0m 0.25s
sys 0m 4.45s
Sample run with sequential order of creation:
time ./ex14_1 -sn 1000 test
0x03E706FF s 1000 2.547000 0.078000 2.469000
real 0m 4.35s
user 0m 0.21s
sys 0m 3.96s