From 32a38fe48c09dcd7c0accbd19e2a40a7cadfaf26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Henrique?= Date: Fri, 25 Aug 2023 11:40:04 +0000 Subject: [PATCH] melhorando testes --- scripts/graph.py | 5 +++-- scripts/testes.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/graph.py b/scripts/graph.py index 12e0d5f..674c6d4 100644 --- a/scripts/graph.py +++ b/scripts/graph.py @@ -24,7 +24,8 @@ def getData(filename): def generateGraph(filename, framework_name, endpoint_name): x, y = getData(filename) - plot_graph(x, y, f'{framework_name} - {endpoint_name}', 'Number of requests', 'Requests per second', filename.split('.')[0]) + new_filename = ".".join(filename.split('.')[:-1]) + plot_graph(x, y, f'{framework_name} - {endpoint_name}', 'Number of requests', 'Requests per second', new_filename) if __name__ == '__main__': - generateGraph('data.txt', 'ASP.NET', 'test') \ No newline at end of file + generateGraph('data.txt', 'ASP.NET', 'test') diff --git a/scripts/testes.py b/scripts/testes.py index 3ca3f0c..f85ce30 100644 --- a/scripts/testes.py +++ b/scripts/testes.py @@ -41,7 +41,7 @@ def run_tests(endpoint): if os.path.exists(filename): os.remove(filename) - for num_request in range(0, 50_000, 1000): + for num_request in range(0, 50_000, 5000): if num_request <= 0: continue with concurrent.futures.ThreadPoolExecutor(max_workers=10) as executor: