From 83dfdf784112b3dc60f4055d51b72622b7a36732 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 6 Sep 2023 15:47:08 +0200 Subject: [PATCH] . --- definitions.py | 1 + run.py | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/definitions.py b/definitions.py index 3d2d4ca..4442d38 100644 --- a/definitions.py +++ b/definitions.py @@ -22,3 +22,4 @@ CEPH_ROOT = "/mnt/vol/" SERV_URL = "172.172.0.196::share_rsync" REMOTE_INST_STO_ROOT = "inststo/" REMOTE_CEPH_ROOT = "vol/" +NUM_RUNS = 50 diff --git a/run.py b/run.py index 6fe6686..6b837e3 100644 --- a/run.py +++ b/run.py @@ -5,7 +5,14 @@ import json import click from benchmark import run_single_bench -from definitions import BENCH_DIR_NAMES, CEPH_ROOT, INST_STO_ROOT, REMOTE_INST_STO_ROOT, SERV_URL +from definitions import ( + BENCH_DIR_NAMES, + CEPH_ROOT, + INST_STO_ROOT, + NUM_RUNS, + REMOTE_INST_STO_ROOT, + SERV_URL, +) from results_tools import Results results = Results() @@ -19,7 +26,7 @@ def cli(): @cli.command() def local(): click.echo("Running locally") - for runnum in range(50): + for runnum in range(NUM_RUNS): for files_type in BENCH_DIR_NAMES: test_case = "Local-InsSto to CEPH" source = f"{INST_STO_ROOT}/{files_type}" @@ -36,7 +43,7 @@ def local(): @cli.command() def distant(): click.echo("Running distant to local") - for runnum in range(50): + for runnum in range(NUM_RUNS): for files_type in BENCH_DIR_NAMES: test_case = "Distant-InsSto to InsSto" source = f"{SERV_URL}/{REMOTE_INST_STO_ROOT}/{files_type}"