Buckets:
AnonymousSpottedToad/candidate_bucket / codebase /python /nfraxlab_svc-infra /benchmarks /conftest.py
| """Benchmark fixtures and configuration for svc-infra.""" | |
| from __future__ import annotations | |
| import pytest | |
| from fastapi import FastAPI | |
| def base_app() -> FastAPI: | |
| """Minimal FastAPI app for baseline comparison.""" | |
| return FastAPI(title="Benchmark") | |
| def sample_cache_data() -> dict[str, str]: | |
| """Sample data for cache benchmarks.""" | |
| return {f"key_{i}": f"value_{i}" for i in range(100)} | |
| def sample_jwt_payload() -> dict: | |
| """Sample JWT payload for auth benchmarks.""" | |
| return { | |
| "sub": "user_123", | |
| "email": "user@example.com", | |
| "exp": 9999999999, | |
| "iat": 1700000000, | |
| "roles": ["user"], | |
| } | |
| def sample_request_headers() -> dict[str, str]: | |
| """Sample headers for middleware benchmarks.""" | |
| return { | |
| "Authorization": "Bearer test_token", | |
| "Content-Type": "application/json", | |
| "X-Request-ID": "req_123", | |
| } | |
Xet Storage Details
- Size:
- 966 Bytes
- Xet hash:
- 16ae6fa42370b4d5e0516f5f117752447d9f2fd0aa14165500c61ea753e66b7f
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.