summary refs log tree commit diff stats
path: root/scripts/simplebench/bench_write_req.py
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>2020-10-21 17:58:55 +0300
committerMax Reitz <mreitz@redhat.com>2020-12-18 12:35:55 +0100
commit8e979febb01222edb1e53fb61a93a4c803924869 (patch)
treeb372c48742c3c553233777d47ae508117a23f5ec /scripts/simplebench/bench_write_req.py
parentbfccfa62ac771400a146dfe768a900f9f6e64467 (diff)
downloadfocaccia-qemu-8e979febb01222edb1e53fb61a93a4c803924869.tar.gz
focaccia-qemu-8e979febb01222edb1e53fb61a93a4c803924869.zip
simplebench: move results_to_text() into separate file
Let's keep view part in separate: this way it's better to improve it in
the following commits.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20201021145859.11201-18-vsementsov@virtuozzo.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Max Reitz <mreitz@redhat.com>
Diffstat (limited to 'scripts/simplebench/bench_write_req.py')
-rwxr-xr-xscripts/simplebench/bench_write_req.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/simplebench/bench_write_req.py b/scripts/simplebench/bench_write_req.py
index e175bcd7a4..da601ea2fe 100755
--- a/scripts/simplebench/bench_write_req.py
+++ b/scripts/simplebench/bench_write_req.py
@@ -26,6 +26,7 @@ import sys
 import os
 import subprocess
 import simplebench
+from results_to_text import results_to_text
 
 
 def bench_func(env, case):
@@ -167,4 +168,4 @@ if __name__ == '__main__':
 
     result = simplebench.bench(bench_func, test_envs, test_cases, count=3,
                                initial_run=False)
-    print(simplebench.results_to_text(result))
+    print(results_to_text(result))