refactor: 为RMBG2.0测试方法添加cfg(test)属性,优化extract_image_url函数避免clone

This commit is contained in:
michaelbguo
2025-12-25 10:44:32 +08:00
parent f35631157a
commit 7c9261567b
3 changed files with 13 additions and 8 deletions
+2 -2
View File
@@ -21,7 +21,7 @@ fn test_pixel_combine_performance() -> Result<()> {
image::Luma([((x + y) % 256) as u8])
});
let iterations = 50;
let iterations = 10;
println!("=== 像素组合性能测试 ===");
println!("图片尺寸: {}x{}", width, height);
@@ -195,7 +195,7 @@ fn test_postprocess_parallel_vs_serial() -> Result<()> {
})
.collect();
let iterations = 20;
let iterations = 10;
println!("=== 后处理阶段性能测试(纯图像操作)===");
println!("图片数量: {}", num_images);