How mark-koptev/llmbenchmark works
LLMBenchmark is a FastAPI service with benchmark and cache-related API routes. The apparent benchmark workflow is route → dependency-provided service → repository, but the benchmark route, service, and repository implementations were not excerpted, so their runtime links cannot be verified. The shown code does establish application routing, cache access, Redis lifecycle, and request logging. The README only gives the product name, so broader benchmark capabilities and integrations remain uncertain.
Main entry points: server.py FastAPI server · services.py Service dependencies · Redis.py Redis cache service · __init__.py API router
Components 16
Application entry
- FastAPI server
core/server.py - API router
api/__init__.py - Process launcher
main.py
Benchmark domain
- Benchmark routes
api/Benchmark.py - Benchmark service
services/Benchmark.py - Benchmark repository
repositories/Benchmark.py - Benchmark schema
schemas/Benchmark.py
Cache subsystem
- Cache routes
api/Redis.py - Service dependencies
api/dependencies/services.py - Redis cache service
services/Redis.py - Redis store
Runtime support
- Request middleware
core/middleware.py - App lifecycle
core/lifespan.py - Logger
core/logger.py - Settings
config.py
Other components
- API caller
Connections 20
- API caller → FastAPI server: sends requests
core/server.py - FastAPI server → API router: registers routes
core/server.py - FastAPI server → Request middleware: installs middleware
core/server.py - FastAPI server → App lifecycle: uses lifecycle
core/server.py - API router → Benchmark routes: includes routes
api/__init__.py - API router → Cache routes: includes routes
api/__init__.py - Cache routes → Service dependencies: requests dependency
api/Redis.py - Service dependencies → Redis cache service: returns cache
api/dependencies/services.py - Cache routes → Redis cache service: flushes cache
api/Redis.py - Service dependencies → Benchmark repository: creates repository
api/dependencies/services.py - Service dependencies → Benchmark service: creates service
api/dependencies/services.py - Benchmark service → Benchmark repository: receives repository
api/dependencies/services.py - Redis cache service → Redis store: reads and writes
services/Redis.py - Redis cache service → Settings: reads Redis host
services/Redis.py - App lifecycle → Service dependencies: gets cache
core/lifespan.py - App lifecycle → Redis cache service: closes cache
core/lifespan.py - Request middleware → Logger: logs requests
core/middleware.py - Logger → Settings: uses logging settings
core/logger.py - Process launcher → FastAPI server: starts app
main.py - Benchmark routes → Benchmark service: uses service