Skip to content

Commit

Permalink
sweet spot on containers and clocktime
Browse files Browse the repository at this point in the history
  • Loading branch information
y3rsh committed Oct 8, 2024
1 parent 4ac0e4e commit 49a4319
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion analyses-snapshot-testing/citools/generate_analyses.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
HOST_RESULTS: Path = Path(Path(__file__).parent.parent, "analysis_results")
ANALYSIS_SUFFIX: str = "analysis.json"
ANALYSIS_TIMEOUT_SECONDS: int = 30
ANALYSIS_CONTAINER_INSTANCES: int = 10
ANALYSIS_CONTAINER_INSTANCES: int = 7

console = Console()

Expand Down Expand Up @@ -242,6 +242,7 @@ def analyze_against_image(tag: str, protocols: List[TargetProtocol], num_contain

def generate_analyses_from_test(tag: str, protocols: List[Protocol]) -> None:
"""Generate analyses from the tests."""
start_time = time.time()
protocols_to_process: List[TargetProtocol] = []
for test_protocol in protocols:
host_protocol_file = Path(test_protocol.file_path)
Expand All @@ -259,3 +260,5 @@ def generate_analyses_from_test(tag: str, protocols: List[Protocol]) -> None:
)
)
analyze_against_image(tag, protocols_to_process, ANALYSIS_CONTAINER_INSTANCES)
end_time = time.time()
console.print(f"Clock time to generate analyses: {end_time - start_time:.2f} seconds.")

0 comments on commit 49a4319

Please sign in to comment.