This commit is contained in:
alex
2023-09-06 15:47:08 +02:00
parent 4d485c8213
commit 83dfdf7841
2 changed files with 11 additions and 3 deletions

13
run.py
View File

@@ -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}"