summaryrefslogtreecommitdiffstats
path: root/data/ref_results/network_benchmarks_indices.py
diff options
context:
space:
mode:
authorNauman_Ahad <Nauman_Ahad@dell.com>2016-01-05 21:01:17 +0500
committerNauman_Ahad <Nauman_Ahad@dell.com>2016-01-05 21:01:17 +0500
commit57922dcb8e6497f02fdee9306494e932e25dcace (patch)
tree03243a0673de88e39cc682d4d64e54be2ad1c898 /data/ref_results/network_benchmarks_indices.py
parent8812f4746015c669dc8dcab23069f5244ff8acb6 (diff)
QTIP Index calculation along with a script to run qtip from docker
Calculation of Result Indices for 1. Compute suite 2. Storage suite 3. Network suite A script to run qtip from inside the docker container (for Jenkins Jobs) Resolved bugs with ssl_trasform.py, sys info collection on ubuntu and system information collection script Change-Id: Ic5abb3dbd0012cd2257b588b1b3067a6677b1f5d Signed-off-by: Nauman_Ahad <Nauman_Ahad@dell.com>
Diffstat (limited to 'data/ref_results/network_benchmarks_indices.py')
-rw-r--r--data/ref_results/network_benchmarks_indices.py28
1 files changed, 28 insertions, 0 deletions
diff --git a/data/ref_results/network_benchmarks_indices.py b/data/ref_results/network_benchmarks_indices.py
new file mode 100644
index 00000000..f841a65f
--- /dev/null
+++ b/data/ref_results/network_benchmarks_indices.py
@@ -0,0 +1,28 @@
+import os
+import json
+from result_accum import result_concat as concat
+
+def iperf_index ():
+ total_r=0
+ iperf_dict=concat('../../results/iperf/')
+ for k,v in iperf_dict.iteritems():
+ for i,j in iperf_dict[k].iteritems():
+ if i=="3 IPERF result":
+ for a,b in iperf_dict[k][i].iteritems():
+ if a=="2. Bandwidth":
+ raw_num=iperf_dict[k][i][a]['2. throughput Received (b/s)']
+ total_r=total_r+raw_num
+
+ l= len(iperf_dict)
+
+ with open ('./reference.json') as reference_file:
+ reference_djson=json.load(reference_file)
+ iperf_ref_r=reference_djson['network']['iperf']['throughput received(b/s)']
+
+
+ iperf_index_r=float((total_r/l)/iperf_ref_r)
+ iperf_dict_i={};
+ iperf_dict_i['1. Index']=iperf_index_r
+ iperf_dict_i['2. Results']=iperf_dict
+ return iperf_dict_i
+