summaryrefslogtreecommitdiffstats
path: root/benchmarks/playbooks/result_transform/fio
diff options
context:
space:
mode:
authorYujun Zhang <zhang.yujunz@zte.com.cn>2016-11-03 08:10:41 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-11-03 08:10:41 +0000
commit403e8ead12863163573f45c1be07a48c05061f45 (patch)
tree9f0398c9a8e3ebc397e3f30e88a083f09a04d0b5 /benchmarks/playbooks/result_transform/fio
parent10fa387f3ad554a4c42c580b424f79c2171c64d3 (diff)
parenta9d5c798ad0da8494056181cc1b68f85f9b203c9 (diff)
Merge "Remove playbooks directory"
Diffstat (limited to 'benchmarks/playbooks/result_transform/fio')
-rwxr-xr-xbenchmarks/playbooks/result_transform/fio/fio_result_transform.py29
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)