mirror of https://github.com/ivanch/tcc.git
melhorando testes
This commit is contained in:
parent
92245c468a
commit
fc07542237
|
@ -1,5 +1,7 @@
|
||||||
.vs
|
.vs
|
||||||
|
__pycache__
|
||||||
bin
|
bin
|
||||||
obj
|
obj
|
||||||
|
|
||||||
*.png
|
*.png
|
||||||
*.csv
|
*.csv
|
|
@ -2,6 +2,7 @@ import requests
|
||||||
import concurrent.futures
|
import concurrent.futures
|
||||||
import time
|
import time
|
||||||
import sys
|
import sys
|
||||||
|
import os
|
||||||
from graph import generateGraph
|
from graph import generateGraph
|
||||||
|
|
||||||
if len(sys.argv) != 2 or sys.argv[1] == '-h' or sys.argv[1] == '--help':
|
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):
|
def run_tests(endpoint):
|
||||||
filename = getFileName(endpoint)
|
filename = getFileName(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, 1000):
|
||||||
if num_request <= 0: continue
|
if num_request <= 0: continue
|
||||||
|
|
Loading…
Reference in New Issue