# Run all tests (automated script)./scripts/run_performance_tests.sh
# Quick test (faster)./scripts/run_performance_tests.sh--quick
# With load testing./scripts/run_performance_tests.sh--load
# Everything./scripts/run_performance_tests.sh--all
cdbackend
# All performance testspoetryrunpytesttests/performance/--performance-v
# Specific testpoetryrunpytesttests/performance/test_search_performance.py::TestSearchPerformance::test_semantic_search_latency--performance-v
# Backend server (required for tests)cdbackend
poetryrunuvicornapp.server:app--port8004# Run quick performance check./scripts/run_performance_tests.sh--quick--monitor
# Run full suite./scripts/run_performance_tests.sh--all
# Load test - lightlocust-fbackend/tests/performance/locustfile.py--host=http://localhost:8004--users10--spawn-rate2--run-time2m--headless
# Load test - heavylocust-fbackend/tests/performance/locustfile.py--host=http://localhost:8004--users200--spawn-rate10--run-time10m--headless