mirror of https://github.com/ivanch/tcc.git
melhorando testes
This commit is contained in:
parent
92245c468a
commit
fc07542237
|
@ -1,5 +1,7 @@
|
|||
.vs
|
||||
__pycache__
|
||||
bin
|
||||
obj
|
||||
|
||||
*.png
|
||||
*.csv
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue