e-hossam96 commited on
Commit
6c686c9
·
1 Parent(s): 443ce70

changed num workers

Browse files
Files changed (1) hide show
  1. test.py +1 -1
test.py CHANGED
@@ -12,7 +12,7 @@ from tqdm import tqdm # optional: install via `pip install tqdm`
12
  # ----------------------------- #
13
  URL = "http://localhost:8000/classify"
14
  NUM_REQUESTS = 4000
15
- MAX_WORKERS = os.cpu_count() * 8 or 2
16
  TIMEOUT = 20
17
 
18
  logging.basicConfig(level=logging.INFO)
 
12
  # ----------------------------- #
13
  URL = "http://localhost:8000/classify"
14
  NUM_REQUESTS = 4000
15
+ MAX_WORKERS = os.cpu_count()
16
  TIMEOUT = 20
17
 
18
  logging.basicConfig(level=logging.INFO)