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
Have you done some statistics like my answer in this post?
LBerger, thank you for this interesting link, but I'm not sure to have exactly the same problem. I'm aware about the OpenCL issues and my OpenCV version is built without any CL parts.
To me, there is surch a big difference and it can't just be an overhead of the operating system. This is 2 operating system on the same computer, so it's exactly the same hardware. 50% of difference if very very too much important.
When you run your program twice have you got same result? I don't think so. You need ro run your test 10 or 100 times.
It means for test 0 I have got mean is 0.19 but sometimes have got 0.19+0.11 and sometimes 0.19-0.11s. I think you should check this.
I can run my code any time i want, the results are still the same.