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

GCC vs Clang, which produces better code? #417

Open
lefticus opened this issue Aug 5, 2024 · 2 comments
Open

GCC vs Clang, which produces better code? #417

lefticus opened this issue Aug 5, 2024 · 2 comments

Comments

@lefticus
Copy link
Owner

lefticus commented Aug 5, 2024

This is a follow-up to the #26 issues that were reported with clang producing code 1/2 the speed of gcc.

@lefticus
Copy link
Owner Author

lefticus commented Aug 8, 2024

Various versions being tested is here:

https://github.com/lefticus/cpp_weekly/tree/master/parallel_algorithms

Data: https://github.com/lefticus/cpp_weekly/blob/master/parallel_algorithms/performance_stats.csv

So far it looks like the fact that I used signed indexes for some of the code resulted in clang losing its mind, which, if you know anything about the history of the "used signed for performance" stuff, should be rather ironic.

I also need to run callgrind tests against the different versions and see what shakes out.

@elbeno
Copy link

elbeno commented Aug 14, 2024

Related: Alex Dathskovsky's (https://www.youtube.com/@cppnext-alexd) talk "To Int or to Uint?" at CppNorth 2024, to be repeated at CppCon 2024 https://cppcon2024.sched.com/event/1gZg0/to-int-or-to-uint-this-is-the-question

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

No branches or pull requests

2 participants