How aditya-1406/ai-load-testing works
The repository is an AI-assisted load-testing framework, with a separate Flask notes API that can serve as a test target. The main workflow runs concurrent trials against a configured API, analyzes results with feature engineering and ML, then presents metrics, predictions, anomalies, and a digital-twin simulation in Streamlit. The README also documents a standalone baseline tester and notes CRUD capability. The core load-test implementation was not excerpted, so its internal call relationships are shown only where documented; the graph does not assume its internal function structure.
Main entry points: ui.py Streamlit dashboard · concurrency_test.py Concurrent test runner · ai_load_testing_results.csv Test results CSV · api.py Notes REST API
Components 16
Load testing
- Concurrent test runner
AI_Load_Test/concurrency_test.py - Baseline tester
AI_Load_Test/baselin.py - Test results CSV
AI_Load_Test/ai_load_testing_results.csv
Analysis and simulation
- Feature engineering
AI_Load_Test/concurrency_test.py - Performance models
AI_Load_Test/concurrency_test.py - Failure classifier
AI_Load_Test/concurrency_test.py - Anomaly detection
AI_Load_Test/concurrency_test.py - Failure threshold
AI_Load_Test/concurrency_test.py - Digital twin
AI_Load_Test/concurrency_test.py
Dashboard
- Streamlit dashboard
AI_Load_Test/ui.py
Notes API
- Notes REST API
AI_Load_Test/api.py - Notes database helper
AI_Load_Test/helper.py - Notes SQLite database
AI_Load_Test/notes.db
Other components
- Test operator
- Target API
- API consumer
Connections 16
- Test operator → Streamlit dashboard: controls tests
README.md - Streamlit dashboard → Concurrent test runner: runs trials
AI_Load_Test/ui.py - Concurrent test runner → Target API: sends requests
README.md - Test operator → Concurrent test runner: runs directly
README.md - Baseline tester → Target API: measures latency
AI_Load_Test/baselin.py - Streamlit dashboard → Feature engineering: engineers features
AI_Load_Test/ui.py - Streamlit dashboard → Performance models: trains regressor
AI_Load_Test/ui.py - Streamlit dashboard → Failure classifier: classifies failures
AI_Load_Test/ui.py - Streamlit dashboard → Anomaly detection: detects anomalies
AI_Load_Test/ui.py - Streamlit dashboard → Failure threshold: estimates threshold
AI_Load_Test/ui.py - Streamlit dashboard → Digital twin: simulates behavior
AI_Load_Test/ui.py - Streamlit dashboard → Test results CSV: writes results
AI_Load_Test/ui.py - Test results CSV → Streamlit dashboard: loads uploaded data
AI_Load_Test/ui.py - API consumer → Notes REST API: uses CRUD API
README.md - Notes REST API → Notes database helper: delegates storage
AI_Load_Test/api.py - Notes database helper → Notes SQLite database: reads and writes
AI_Load_Test/helper.py