WIP use results

This commit is contained in:
Christian Schwarz
2023-11-24 10:18:05 +00:00
parent 135e37e5b2
commit dd5792e488
2 changed files with 17 additions and 1 deletions

View File

@@ -1566,6 +1566,15 @@ class ComputeCtl(AbstractNeonCli):
COMMAND = "compute_ctl"
# class GetpageBenchLibpq(AbstractNeonCli):
# """
# A typed wrapper around the `getpage_bench_libpq` CLI.
# """
#
# COMMAND = "getpage_bench_libpq"
#
# def run(self):
# pass
class NeonAttachmentService:
def __init__(self, env: NeonEnv):

View File

@@ -1,4 +1,5 @@
import json
from pathlib import Path
import shutil
import subprocess
@@ -104,4 +105,10 @@ def test_getpage_throughput(neon_env_builder: NeonEnvBuilder, zenbenchmark: Neon
*[str(tenant) for tenant in tenants],
]
basepath = pg_bin.run_capture(cmd)
log.info("Benchmark results: %s", basepath + ".stdout")
results_path = Path(basepath + ".stdout")
log.info(f"Benchmark results at: {results_path}")
with open(results_path, 'r') as f:
results = json.load(f)