aboutsummaryrefslogtreecommitdiffstats
path: root/data/ref_results/storage_suite.py
blob: 0c5b4c66197370b4b0ea66c86e0d5bbef13aa4b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import json
import storage_benchmarks_indices as benchmark_indices


storage_dict={};
storage_dict['FIO']=benchmark_indices.fio_index()




storage_bench_list=['FIO']
temp=0
for benchmark in storage_bench_list:
    temp=temp+float(storage_dict[benchmark]['1. Index'])
storage_suite_index=temp/len(storage_bench_list)

storage_dict_f={};
storage_dict_f['1. Index']=storage_suite_index
storage_dict_f['2. Storage suite results']=storage_dict
with open('../../results/storage_result.json', 'w+') as result_json:
    json.dump(storage_dict_f, result_json, indent=4, sort_keys=True)