diff --git a/.gitignore b/.gitignore index 39584b1..278bb12 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,7 @@ .vs +__pycache__ bin obj + *.png *.csv \ No newline at end of file diff --git a/scripts/testes.py b/scripts/testes.py index bdc1ad3..3ca3f0c 100644 --- a/scripts/testes.py +++ b/scripts/testes.py @@ -2,6 +2,7 @@ import requests import concurrent.futures import time import sys +import os from graph import generateGraph if len(sys.argv) != 2 or sys.argv[1] == '-h' or sys.argv[1] == '--help': @@ -37,6 +38,8 @@ def record(filename, requests, reqpersec): def run_tests(endpoint): filename = getFileName(endpoint) + if os.path.exists(filename): + os.remove(filename) for num_request in range(0, 50_000, 1000): if num_request <= 0: continue