@@ -469,38 +469,7 @@ curl -X POST "http://localhost:5000/api/search/search" \
469469- ** AI Response** : ~ 2-5s for 5 sources, ~ 3-8s for 10 sources
470470- ** Memory Usage** : ~ 50MB base + documents, ~ 100MB with Redis cache
471471
472- ### ** Performance Testing**
473- SmartRAG includes built-in benchmark tools to measure performance:
474472
475- ``` bash
476- # Run comprehensive performance test
477- curl -X POST " http://localhost:5000/api/benchmark/performance-test" \
478- -H " Content-Type: application/json" \
479- -d ' {
480- "testDocumentUpload": true,
481- "testSearch": true,
482- "testAIResponse": true,
483- "testEndToEnd": true,
484- "documentSizeKB": 100,
485- "searchQuery": "What are the main topics discussed?",
486- "maxResults": 5
487- }'
488-
489- # Get system information
490- curl " http://localhost:5000/api/benchmark/system-info"
491- ```
492-
493- ** Expected Results (Development Environment):**
494- - ** Document Upload** : 100KB β ~ 500ms, 1MB β ~ 1-2s
495- - ** Search Response** : Simple query β ~ 200ms, Complex β ~ 500ms
496- - ** AI Response** : 5 sources β ~ 2-5s, 10 sources β ~ 3-8s
497- - ** Memory Usage** : Base ~ 50MB + document cache
498-
499- ** Production Performance (Redis + Anthropic):**
500- - ** Document Upload** : 1MB β ~ 1-2s, 10MB β ~ 5-10s
501- - ** Search Response** : Complex query β ~ 500ms, Large dataset β ~ 1-2s
502- - ** AI Response** : 10 sources β ~ 3-8s, 20 sources β ~ 5-15s
503- - ** Memory Usage** : Base ~ 100MB + Redis cache
504473
505474### ** Scaling Tips**
506475- Use ** Redis** or ** Qdrant** for production workloads
0 commit comments