aboutsummaryrefslogtreecommitdiff
path: root/scripts/simplebench/bench-example.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-example.py
parentbfccfa62ac771400a146dfe768a900f9f6e64467 (diff)
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-example.py')
-rw-r--r--scripts/simplebench/bench-example.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/simplebench/bench-example.py b/scripts/simplebench/bench-example.py
index f24cf22fe9..d9c7f7bc17 100644
--- a/scripts/simplebench/bench-example.py
+++ b/scripts/simplebench/bench-example.py
@@ -19,6 +19,7 @@
#
import simplebench
+from results_to_text import results_to_text
from bench_block_job import bench_block_copy, drv_file, drv_nbd
@@ -77,4 +78,4 @@ test_envs = [
]
result = simplebench.bench(bench_func, test_envs, test_cases, count=3)
-print(simplebench.results_to_text(result))
+print(results_to_text(result))