From b7e52a827194a0faff16509092d6d86ae9f80ed3 Mon Sep 17 00:00:00 2001 From: Sam Mirazi Date: Sun, 1 Jun 2025 10:16:39 -0700 Subject: [PATCH] flask complete --- benchmark/run_benchmark.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: -- 2.25.1