Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big speed difference on Mac vs CentOS #41

Open
danielhomer opened this issue Aug 13, 2018 · 1 comment
Open

Big speed difference on Mac vs CentOS #41

danielhomer opened this issue Aug 13, 2018 · 1 comment

Comments

@danielhomer
Copy link

I've compiled the examples/main.go on both a MacBook Pro (Early 2015 i5) and CentOS (Amazon t2.large) and the OSX build is much faster

Mac

time ./main-osx --input=tlou2ps4pro1.jpg --output=test123.webp                                                                        10:40:01
file type: JPEG
3840px x 2160px
image written to test123.webp
        1.20 real         1.10 user         0.07 sys

t2.large

[ec2-user@ip-172-31-35-112 examples]$ time ./main --input=tlou2ps4pro1.jpg --output=test113.webp
file type: JPEG
3840px x 2160px
image written to test113.webp

real	0m8.039s
user	0m8.001s
sys	0m0.040s

Is there anything obvious I'm missing? I've tried the build-deps-linux.sh out of the box, as well as adding the following flags to the OpenCV cmake:

-DCMAKE_BUILD_TYPE=RELEASE -DWITH_TBB=ON -DWITH_IPP=ON -DWITH_V4L=ON -DENABLE_AVX=ON -DENABLE_SSSE3=ON -DENABLE_SSE41=ON -DENABLE_SSE42=ON -DENABLE_POPCNT=ON -DENABLE_FAST_MATH=ON -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF

But nothing is bringing it close to the Mac speed.

Cheers.

@brian-armstrong-discord
Copy link
Contributor

Hi @danielhomer

I think this might have been due to a regression checked in here. Can you try again on the latest master?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants