GPU测试

This commit is contained in:
2026-01-20 10:54:30 +08:00
parent 8463f5a571
commit 8e9de9c858
59 changed files with 18934 additions and 0 deletions

View File

@@ -0,0 +1,278 @@
[
{
"test_type": "ultralytics_optimized",
"resolution": 320,
"batch_size": 4,
"num_cameras": 1,
"num_threads": 2,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:31:56"
},
{
"test_type": "ultralytics_optimized",
"resolution": 320,
"batch_size": 4,
"num_cameras": 3,
"num_threads": 2,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:31:58"
},
{
"test_type": "ultralytics_optimized",
"resolution": 320,
"batch_size": 4,
"num_cameras": 5,
"num_threads": 2,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:01"
},
{
"test_type": "ultralytics_optimized",
"resolution": 320,
"batch_size": 5,
"num_cameras": 10,
"num_threads": 3,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:04"
},
{
"test_type": "ultralytics_optimized",
"resolution": 320,
"batch_size": 7,
"num_cameras": 15,
"num_threads": 5,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:07"
},
{
"test_type": "ultralytics_optimized",
"resolution": 320,
"batch_size": 15,
"num_cameras": 30,
"num_threads": 8,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:10"
},
{
"test_type": "ultralytics_optimized",
"resolution": 480,
"batch_size": 4,
"num_cameras": 1,
"num_threads": 2,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:13"
},
{
"test_type": "ultralytics_optimized",
"resolution": 480,
"batch_size": 4,
"num_cameras": 3,
"num_threads": 2,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:16"
},
{
"test_type": "ultralytics_optimized",
"resolution": 480,
"batch_size": 4,
"num_cameras": 5,
"num_threads": 2,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:18"
},
{
"test_type": "ultralytics_optimized",
"resolution": 480,
"batch_size": 5,
"num_cameras": 10,
"num_threads": 3,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:21"
},
{
"test_type": "ultralytics_optimized",
"resolution": 480,
"batch_size": 7,
"num_cameras": 15,
"num_threads": 5,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:24"
},
{
"test_type": "ultralytics_optimized",
"resolution": 480,
"batch_size": 15,
"num_cameras": 30,
"num_threads": 8,
"target_fps": 30,
"actual_fps": 0,
"per_camera_fps": 0,
"gpu_utilization": 0,
"memory_used_mb": 0,
"avg_latency_ms": 0,
"p95_latency_ms": 0,
"max_latency_ms": 0,
"min_latency_ms": 0,
"avg_inference_time_ms": 0,
"total_inferences": 0,
"total_frames_processed": 0,
"thread_utilization": {},
"is_stable": false,
"error_msg": "Could not find: nvinfer_10.dll. Is it on your PATH?\nNote: Paths searched were:\n['C:\\\\Users\\\\16337\\\\miniconda3\\\\envs\\\\yolov11\\\\Lib\\\\site-packages\\\\cv2\\\\../../x64/vc17/bin', 'C:\\\\Users\\\\16337\\\\miniconda",
"timestamp": "2026-01-17 21:32:27"
}
]

View File

@@ -0,0 +1,41 @@
# RTX 3050 Ultralytics 优化压力测试报告
生成时间: 2026-01-17 21:32:28
## 优化策略
- 多线程并行推理
- 大批次处理
- GPU 预处理优化
- 优化内存管理
- 引擎缓存复用
## 1. 最大性能测试
| 分辨率 | 最大 FPS | 预期 GPU 利用率 |
|--------|----------|----------------|
| 320×320 | 0.0 | 50-70% |
| 480×480 | 0.0 | 50-70% |
## 2. 摄像头扩展性测试
| 分辨率 | 摄像头数 | 单路 FPS |
|--------|----------|----------|
| 320×320 | 1 | 0.0 |
| 320×320 | 3 | 0.0 |
| 320×320 | 5 | 0.0 |
| 320×320 | 10 | 0.0 |
| 320×320 | 15 | 0.0 |
| 320×320 | 30 | 0.0 |
| 480×480 | 1 | 0.0 |
| 480×480 | 3 | 0.0 |
| 480×480 | 5 | 0.0 |
| 480×480 | 10 | 0.0 |
| 480×480 | 15 | 0.0 |
| 480×480 | 30 | 0.0 |
## 3. 性能对比
与之前测试对比:
- 之前最大 FPS: 33.8 (GPU 30%)
- 优化后目标: 60-100 FPS (GPU 50-70%)
- 预期提升: 2-3倍