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

Some performance differences are not due to languages, but to processors #46

Open
glandium opened this issue Sep 28, 2018 · 2 comments
Open

Comments

@glandium
Copy link

For instance, the C and C++ code are strictly identical, and compile to the exact same machine code. Yet, the C++ version is faster... only because it's not at the same address. See https://news.ycombinator.com/item?id=18092684

This likely explains the observations in #28.

@drujensen
Copy link
Owner

That is an amazing observation. I've made a note in the readme.

@mratsim
Copy link

mratsim commented Sep 29, 2018

Another article that goes in-depth into code alignment issues in benchmarking: https://dendibakh.github.io/blog/2018/01/18/Code_alignment_issues

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

3 participants