flask complete
authorSam Mirazi <sasan345@gmail.com>
Sun, 1 Jun 2025 17:16:39 +0000 (10:16 -0700)
committerSam Mirazi <sasan345@gmail.com>
Sun, 1 Jun 2025 17:16:39 +0000 (10:16 -0700)
benchmark/run_benchmark.py

index 25e3ea7db636bda0c192865bd06c14d885544888..ba5d4af59e829c824d21e1130d186b233b489b00 100644 (file)
@@ -9,11 +9,11 @@ from concurrent.futures import ThreadPoolExecutor
 # Server URLs (ensure these match your running servers)
 FLASK_URL = "http://127.0.0.1:3000/"
 FASTAPI_URL = "http://127.0.0.1:8000/"
-NUM_REQUESTS = 1
+NUM_REQUESTS = 100
 
 def fetch_url_sync(url):
     try:
-        response = requests.get(url, timeout=10) # Increased timeout for potentially slow server
+        response = requests.get(url) # REMOVED timeout=10
         response.raise_for_status() # Raise an exception for bad status codes
         return response.status_code
     except requests.exceptions.RequestException as e: