Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /nijaru_zenith /benchmarks /load_test_app.py
| """Load test app for profiling.""" | |
| import os | |
| os.environ["ZENITH_ENV"] = "production" | |
| os.environ["SECRET_KEY"] = "benchmarksecretkey12345678901234" | |
| from zenith import Zenith | |
| app = Zenith() | |
| async def hello(): | |
| return {"message": "Hello, World!"} | |
| async def json_response(): | |
| return { | |
| "users": [ | |
| {"id": i, "name": f"User {i}", "email": f"user{i}@example.com"} | |
| for i in range(10) | |
| ], | |
| "total": 10, | |
| "page": 1, | |
| } | |
| async def compute(): | |
| # Simulate some computation | |
| result = sum(i * i for i in range(1000)) | |
| return {"result": result} | |
| if __name__ == "__main__": | |
| import uvicorn | |
| uvicorn.run(app, host="127.0.0.1", port=8200, log_level="warning") | |
Xet Storage Details
- Size:
- 781 Bytes
- Xet hash:
- 454f8ed17c86f1ed650da9b132f6044ce4f1478f813b52b826bc8db14b49a227
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.