TDD Updated
authorSam Mirazi <sasan345@gmail.com>
Mon, 2 Jun 2025 03:58:55 +0000 (20:58 -0700)
committerSam Mirazi <sasan345@gmail.com>
Mon, 2 Jun 2025 03:58:55 +0000 (20:58 -0700)
Design Docs/TDD.md
tests/__pycache__/test_benchmark.cpython-312-pytest-8.3.5.pyc [new file with mode: 0644]

index 3a4aa1eb7a98a1088ae08e9abdcfeda083411884..f1c922a8e61b617fd58e584c6099554d18dac6c1 100644 (file)
@@ -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 (file)
index 0000000..04c84b9
Binary files /dev/null and b/tests/__pycache__/test_benchmark.cpython-312-pytest-8.3.5.pyc differ