diff options
author | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-12-10 22:06:22 (GMT) |
---|---|---|
committer | Bill Wendling <wendling@ncsa.uiuc.edu> | 2001-12-10 22:06:22 (GMT) |
commit | 39243d8b0559a96d09595d6f5726b584ab308858 (patch) | |
tree | 43d8f4f8ec580fa1ebe82e1fd1aa7d503faaa95b /perform/pio_perf.c | |
parent | c597c46ae4ab72205cb1fe3f6592e52c1f3c7c5a (diff) | |
download | hdf5-39243d8b0559a96d09595d6f5726b584ab308858.zip hdf5-39243d8b0559a96d09595d6f5726b584ab308858.tar.gz hdf5-39243d8b0559a96d09595d6f5726b584ab308858.tar.bz2 |
[svn-r4689]
Purpose:
Feature Fix
Description:
Added code so that it will actually output some of the timing
measurements.
Platforms tested:
Linux
Diffstat (limited to 'perform/pio_perf.c')
-rw-r--r-- | perform/pio_perf.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/perform/pio_perf.c b/perform/pio_perf.c index b9de34e..059845b 100644 --- a/perform/pio_perf.c +++ b/perform/pio_perf.c @@ -230,6 +230,8 @@ run_test_loop(FILE *output, int max_num_procs, long max_size) fprintf(output, "PHDF5\n"); for (j = MIN_HDF5_BUF_SIZE; j <= MAX_HDF5_BUF_SIZE; j <<= 1) { + results res; + parms.num_dsets = ONE_GB / j; parms.num_elmts = (max_size * j) / sizeof(int); @@ -239,8 +241,17 @@ run_test_loop(FILE *output, int max_num_procs, long max_size) parms.num_files, parms.num_dsets, parms.num_elmts); /* call Albert's testing here */ - do_pio(parms); + res = do_pio(parms); + + print_indent(output, TAB_SPACE * 3); + fprintf(output, "Write Results = %f MB/s\n", + (parms.num_dsets * parms.num_elmts * sizeof(int)) / + get_time(res.timers, HDF5_WRITE_FIXED_DIMS)); + /* get back ``result'' object and report */ + /* (res.ret_code == SUCCESS); */ + /* (res.timers); */ + pio_time_destroy(res.timers); } } } @@ -259,8 +270,6 @@ print_indent(register FILE *output, register int indent) { for (; indent > 0; --indent) fputc(' ', output); - - fputc('\n', output); } /* |