mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-25 06:34:24 +08:00
Adds a reproducible cold-start benchmarking harness covering lfx run bare boot, lfx run <flow> first-execution, and langflow run end-to-end restart scenarios. - src/backend/tests/benchmarks/: driver, scenarios, fixtures, mock LLM, measurement Dockerfile, thresholds.json sentinel baseline, conftest. - src/lfx/src/lfx/_bench.py: stdlib-only checkpoint instrumentation gated on LFX_BENCHMARK_CHECKPOINTS. - src/lfx/src/lfx/cli/run.py: integrates checkpoint hooks at after-imports, before-run-flow, after-run-flow landmarks; dump() on completion. - .github/workflows/cold-start-benchmark.yml: label-gated CI regression gate with per-scenario matrix jobs. run-benchmarks (verify) and run-benchmark-snapshot (capture) label triggers. - Makefile: bench-local / bench-docker / bench-snapshot / bench-verify-synthetic. - pyproject.toml + uv.lock: benchmarks dep group.