From: Sam Mirazi Date: Sun, 1 Jun 2025 17:16:39 +0000 (-0700) Subject: flask complete X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=b7e52a827194a0faff16509092d6d86ae9f80ed3;p=fastapi-vs-flask%2F.git flask complete --- diff --git a/benchmark/run_benchmark.py b/benchmark/run_benchmark.py index 25e3ea7..ba5d4af 100644 --- a/benchmark/run_benchmark.py +++ b/benchmark/run_benchmark.py @@ -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: