Skip to content

Commit d331733

Browse files
Fix post process benchmark results (#100)
* Bumping version from 0.1.72 to 0.1.73 * [fix] fixed post_process_benchmark_results
1 parent a8b8876 commit d331733

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "redisbench-admin"
3-
version = "0.1.73"
3+
version = "0.1.74"
44
description = "Redis benchmark run helper. A wrapper around Redis and Redis Modules benchmark tools ( ftsb_redisearch, memtier_benchmark, redis-benchmark, aibench, etc... )."
55
authors = ["filipecosta90 <[email protected]>"]
66
readme = "README.md"

redisbench_admin/utils/results.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,15 @@ def post_process_benchmark_results(
5656
stdout,
5757
):
5858
if benchmark_tool == "redis-benchmark":
59+
if type(stdout) == bytes:
60+
stdout = stdout.decode("ascii")
5961
logging.info(
6062
"Converting redis-benchmark output to json. Storing it in: {}".format(
6163
local_benchmark_output_filename
6264
)
6365
)
6466
results_dict = redis_benchmark_from_stdout_csv_to_json(
65-
stdout.decode("ascii"),
67+
stdout,
6668
start_time_ms,
6769
start_time_str,
6870
overload_test_name="Overall",

0 commit comments

Comments
 (0)