Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV 2.4.11 Windows VS Linux

It seams OpenCV with CUDA have better performance on Linux than Windows.

I have compared on the same computer the performance of a GTX980 with Windows 10 and ubuntu 15.04. Perf result on Linux are better than Windows. I compiled OpenCV with the same compilation flags on each Operating System.

Why there is surch a big difference beetwen the 2 OS with the same hardware ?

for exemple:

  Sz_Type_KernelSz_Filters_Blur.Filters_Blur/11:   
       Windows 10: 295ms    
       Ubuntu 15.04: 281ms
    Sz_Type_KernelSz_Filters_Sobel.Filters_Sobel/13:    
       Windows 10: 120ms    
       Ubuntu 15.04: 53ms
    Sz_Type_Filters_Scharr.Filters_Scharr/7:    
       Windows 10: 170ms    
       Ubuntu 15.04: 91ms
    Sz_Type_KernelSz_Filters_GaussianBlur.Filters_GaussianBlur/13:  
       Windows 10: 105ms    
       Ubuntu 15.04: 53ms
    Sz_Type_KernelSz_Filters_Filter2D.Filters_Filter2D/41:  
       Windows 10: 1130ms
       Ubuntu 15.04:    1075ms
    Sz_Depth_Cn_MatOp_SetToMasked.MatOp_SetToMasked/32: 
       Windows 10: 220ms    
       Ubuntu 15.04: 183ms
    Sz_Depth_Cn_Inter_Border_Mode_ImgProc_Remap.ImgProc_Remap/658:  
       Windows 10: 215ms    
       Ubuntu 15.04: 198ms
    Sz_Depth_Cn_Inter_Scale_ImgProc_Resize.ImgProc_Resize/44:   
       Windows 10: 255ms    
       Ubuntu 15: 231ms