diff options
author | 2016-01-05 21:01:17 +0500 | |
---|---|---|
committer | 2016-01-05 21:01:17 +0500 | |
commit | 57922dcb8e6497f02fdee9306494e932e25dcace (patch) | |
tree | 03243a0673de88e39cc682d4d64e54be2ad1c898 /data/ref_results/storage_benchmarks_indices.py | |
parent | 8812f4746015c669dc8dcab23069f5244ff8acb6 (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/storage_benchmarks_indices.py')
-rw-r--r-- | data/ref_results/storage_benchmarks_indices.py | 35 |
1 files changed, 35 insertions, 0 deletions
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 + |