Mgbench: apply filtering on results from client

This commit is contained in:
jeremy 2022-11-03 11:03:21 +01:00
parent c5eb3ff2c0
commit 70dc19dfdb

View File

@ -155,4 +155,5 @@ class Client:
args = self._get_args(input=file_path, num_workers=num_workers, queries_json=queries_json)
ret = subprocess.run(args, stdout=subprocess.PIPE, check=True)
data = ret.stdout.decode("utf-8").strip().split("\n")
data = [x for x in data if not x.startswith("[")]
return list(map(json.loads, data))