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): ...@@ -100,20 +100,23 @@ def build_table(results):
if __name__ == '__main__': if __name__ == '__main__':
tests_to_run = argv[1].split(',') tests_to_run = argv[1].split(',')
write_block_formats = ['ZBlk0', 'ZBlk1']
cache_types = ['Hot cache', 'Cold Cache']
# getting read results # getting read results
if 'read' in tests_to_run: if 'read' in tests_to_run:
cache_types = ['Hot Cache', 'Cold Cache'] for block_format in write_block_formats:
read_series = {} # running read tests for all formats in write_block_formats
for cache_type in cache_types: run_write_tests([block_format], 1)
results = run_read_tests(cache_type=cache_type) read_series = {}
read_series[cache_type] = get_series(results) for cache_type in cache_types:
print 'Read results:' results = run_read_tests(cache_type=cache_type)
print build_table(read_series) read_series[cache_type] = get_series(results)
print 'Read results for format %s:' % block_format
print build_table(read_series)
# getting write results # getting write results
if 'write' in tests_to_run: if 'write' in tests_to_run:
write_block_formats = ['ZBlk0', 'ZBlk1']
write_series = {'wendelin.core': get_series(run_write_tests(write_block_formats, 5))} write_series = {'wendelin.core': get_series(run_write_tests(write_block_formats, 5))}
print 'Write results:' print 'Write results:'
print build_table(write_series) 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