From: Sam Mirazi Date: Mon, 2 Jun 2025 03:58:55 +0000 (-0700) Subject: TDD Updated X-Git-Url: https://git.josue.xyz/?a=commitdiff_plain;h=6d902da3436269d1fd1631891ed49a95d08c65db;p=fastapi-vs-flask%2F.git TDD Updated --- diff --git a/Design Docs/TDD.md b/Design Docs/TDD.md index 3a4aa1e..f1c922a 100644 --- a/Design Docs/TDD.md +++ b/Design Docs/TDD.md @@ -1,3 +1,11 @@ +ControlAltPete — 5/28/2025 1:38 AM + +Pythonistas: Your challenge for this week is... write a Python Flask web server that can handle requests for a home page at @route('/') and will simulate a slow request with time.sleep(3) then return a sample HTML page. + +Also write a Python FastAPI web server that handles the same request and does asyncio.sleep(3) then returns a sample HTML page. Finally write a script (Python or shell) to request 100 pages from your web server on http://localhost and time how long it takes for your two different web servers to handle all 100 requests. + +########################################## + ### Technical Design Document (TDD) **Project — Flask vs FastAPI "Slow-Request" Benchmark** diff --git a/tests/__pycache__/test_benchmark.cpython-312-pytest-8.3.5.pyc b/tests/__pycache__/test_benchmark.cpython-312-pytest-8.3.5.pyc new file mode 100644 index 0000000..04c84b9 Binary files /dev/null and b/tests/__pycache__/test_benchmark.cpython-312-pytest-8.3.5.pyc differ