diff options
author | wu.zhihui <wu.zhihui1@zte.com.cn> | 2016-11-03 11:15:50 +0800 |
---|---|---|
committer | wu.zhihui <wu.zhihui1@zte.com.cn> | 2016-11-03 11:15:50 +0800 |
commit | a9d5c798ad0da8494056181cc1b68f85f9b203c9 (patch) | |
tree | 37b450764468557e0f74807d4cf99d862bdc6827 /benchmarks/playbooks/result_transform/fio | |
parent | 268c946642da7cce5801be983a032ea3993a0850 (diff) |
Remove playbooks directory
Qtip will use benchmarks/perftest/.
JIRA: QTIP-131
Change-Id: Icef41b6bcdcb835d76e8e412dd865d1f156f1455
Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
Diffstat (limited to 'benchmarks/playbooks/result_transform/fio')
-rwxr-xr-x | benchmarks/playbooks/result_transform/fio/fio_result_transform.py | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/benchmarks/playbooks/result_transform/fio/fio_result_transform.py b/benchmarks/playbooks/result_transform/fio/fio_result_transform.py deleted file mode 100755 index 5ecac823..00000000 --- a/benchmarks/playbooks/result_transform/fio/fio_result_transform.py +++ /dev/null @@ -1,29 +0,0 @@ -import json -import pickle -import os -import datetime - - -def get_fio_job_result(fio_job_data): - return {'read': {'io_bytes': fio_job_data["read"]["io_bytes"], - 'io_ps': fio_job_data["read"]["iops"], - 'io_runtime_millisec': fio_job_data["read"]["runtime"], - 'mean_io_latenchy_microsec': fio_job_data["read"]["lat"]["mean"]}, - 'write': {'io_bytes': fio_job_data["write"]["io_bytes"], - 'io_ps': fio_job_data["write"]["iops"], - 'io_runtime_millisec': fio_job_data["write"]["runtime"], - 'mean_io_latenchy_microsec': fio_job_data["write"]["lat"]["mean"]}} - - -with open("fio_result.json") as fio_raw: - fio_data = json.load(fio_raw) - -fio_result_dict = {} -for x, result in enumerate(map(get_fio_job_result, fio_data["jobs"])): - fio_result_dict['job_{0}'.format(x)] = result - -host_name = (os.popen("hostname").read().rstrip()) -report_time = str(datetime.datetime.utcnow().isoformat()) -os.system("mv fio_result.json " + str(host_name) + "-" + report_time + ".log") -with open('./result_temp', 'w + ')as out_fio_result: - pickle.dump(fio_result_dict, out_fio_result) |