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: