Skip to content
Snippets Groups Projects
Commit 11096e98 authored by Simon Ehrenstein's avatar Simon Ehrenstein
Browse files

Use format strings

parent a5eb5aaa
No related branches found
No related tags found
4 merge requests!39Add Support for Benchmarking Strategies,!36Implement Benchmarking Strategy: Heuristic 2 (Binary Search Strategy),!35Implement Benchmarking Strategy: Heuristic 1 (Step Strategy),!26Add Support for Benchmarking Strategies
......@@ -9,7 +9,7 @@ def execute(config):
for dim_value in config.dim_values:
for replica in config.replicas:
subexperiment_counter+=1
print("Run subexperiment {}/{} with dimension value {} and {} replicas.".format(subexperiment_counter, subexperiments_total, dim_value, replica))
print(f"Run subexperiment {subexperiment_counter}/{subexperiments_total} with dimension value {dim_value} and {replica} replicas.")
subexperiment_config = SubexperimentConfig(config.use_case, subexperiment_counter, dim_value, replica, config.partitions, config.cpu_limit, config.memory_limit, config.kafka_streams_commit_interval_ms, config.execution_minutes, config.subexperiment_executor)
......
......@@ -5,4 +5,4 @@ import os
dirname = os.path.dirname(__file__)
os.chdir(dirname+"/../../")
def execute(subexperiment_config):
os.system("./run_uc{}.sh {} {} {} {} {} {} {} {}".format(subexperiment_config.use_case, subexperiment_config.counter, subexperiment_config.dim_value, subexperiment_config.replicas, subexperiment_config.partitions, subexperiment_config.cpu_limit, subexperiment_config.memory_limit, subexperiment_config.kafka_streams_commit_interval_ms, subexperiment_config.execution_minutes))
\ No newline at end of file
os.system(f"./run_uc{subexperiment_config.use_case}.sh {subexperiment_config.counter} {subexperiment_config.dim_value} {subexperiment_config.replicas} {subexperiment_config.partitions} {subexperiment_config.cpu_limit} {subexperiment_config.memory_limit} {subexperiment_config.kafka_streams_commit_interval_ms} {subexperiment_config.execution_minutes}")
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment