summaryrefslogtreecommitdiffstats
path: root/data/ref_results/network_suite.py
blob: 0e687f6a81cec2139f503e3126a9979c134ad262 (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 network_benchmarks_indices as benchmark_indices


network_dict={};
network_dict['IPERF']=benchmark_indices.iperf_index()




network_bench_list=['IPERF']
temp=0
for benchmark in network_bench_list:
    temp=temp+float(network_dict[benchmark]['1. Index'])
network_suite_index=temp/len(network_bench_list)

network_dict_f={};
network_dict_f['1. Index']=network_suite_index
network_dict_f['2. Network suite results']=network_dict
with open('../../results/network_result.json', 'w+') as result_json:
    json.dump(network_dict_f, result_json, indent=4, sort_keys=True)