Commit 6dea2f02 authored by Douglas's avatar Douglas

run read tests against all block formats

parent 92b1c118
......@@ -100,20 +100,23 @@ def build_table(results):
if __name__ == '__main__':
tests_to_run = argv[1].split(',')
write_block_formats = ['ZBlk0', 'ZBlk1']
cache_types = ['Hot cache', 'Cold Cache']
# getting read results
if 'read' in tests_to_run:
cache_types = ['Hot Cache', 'Cold Cache']
read_series = {}
for cache_type in cache_types:
results = run_read_tests(cache_type=cache_type)
read_series[cache_type] = get_series(results)
print 'Read results:'
print build_table(read_series)
for block_format in write_block_formats:
# running read tests for all formats in write_block_formats
run_write_tests([block_format], 1)
read_series = {}
for cache_type in cache_types:
results = run_read_tests(cache_type=cache_type)
read_series[cache_type] = get_series(results)
print 'Read results for format %s:' % block_format
print build_table(read_series)
# getting write results
if 'write' in tests_to_run:
write_block_formats = ['ZBlk0', 'ZBlk1']
write_series = {'wendelin.core': get_series(run_write_tests(write_block_formats, 5))}
print 'Write results:'
print build_table(write_series)
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment