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

need to use $var interpolation in all @benchmark/@btime invocations #4

Open
wikfeldt opened this issue Jan 29, 2022 · 3 comments
Open

Comments

@wikfeldt
Copy link
Contributor

No description provided.

@wikfeldt
Copy link
Contributor Author

wikfeldt commented Nov 3, 2022

@lucaferranti this belongs to the "Writing performant Julia code" episode. I never see any difference in results from using interpolation or not so I'm not sure whether this is needed

@lucaferranti
Copy link
Collaborator

You should if u benchmark code that uses global variables

@lucaferranti
Copy link
Collaborator

If you wrap the code u benchmark in a function then interpolation should not be needed

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