From 57922dcb8e6497f02fdee9306494e932e25dcace Mon Sep 17 00:00:00 2001 From: Nauman_Ahad Date: Tue, 5 Jan 2016 21:01:17 +0500 Subject: 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 --- data/ref_results/storage_benchmarks_indices.py | 35 ++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 data/ref_results/storage_benchmarks_indices.py (limited to 'data/ref_results/storage_benchmarks_indices.py') diff --git a/data/ref_results/storage_benchmarks_indices.py b/data/ref_results/storage_benchmarks_indices.py new file mode 100644 index 00000000..6114ad6b --- /dev/null +++ b/data/ref_results/storage_benchmarks_indices.py @@ -0,0 +1,35 @@ +import os +import json +from result_accum import result_concat as concat + +def fio_index (): + total_r=0 + total_w=0 + fio_dict=concat('../../results/fio/') + for k,v in fio_dict.iteritems(): + for i,j in fio_dict[k].iteritems(): + if i=="3 FIO result": + for a,b in fio_dict[k][i].iteritems(): + for c,d in fio_dict[k][i][a].iteritems(): + if c=='read': + raw_num=float(fio_dict[k][i][a][c]["IO/sec"]) + total_r=total_r+raw_num + elif c=='write': + raw_num=float(fio_dict[k][i][a][c]["IO/sec"]) + total_w=total_w+raw_num + + l= len(fio_dict) + + with open ('./reference.json') as reference_file: + reference_djson=json.load(reference_file) + fio_ref_r=reference_djson['storage']['read']['IOPS'] + fio_ref_w=reference_djson['storage']['write']['IOPS'] + + fio_index_r=float((total_r/l)/fio_ref_r) + fio_index_w=float((total_w/l)/fio_ref_w) + fio_index=float((fio_index_r+fio_index_w)/2) + fio_dict_i={}; + fio_dict_i['1. Index']=fio_index + fio_dict_i['2. Results']=fio_dict + return fio_dict_i + -- cgit 1.2.3-korg