melhorando testes

This commit is contained in:
José Henrique Ivanchechen 2023-08-24 20:57:34 -03:00
parent 92245c468a
commit fc07542237
2 changed files with 5 additions and 0 deletions

2
.gitignore vendored
View File

@ -1,5 +1,7 @@
.vs
__pycache__
bin
obj
*.png
*.csv

View File

@ -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