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

[stdlib] add benchmark for lcm and gcd #3041

Open
wants to merge 1 commit into
base: nightly
Choose a base branch
from

Conversation

bgreni
Copy link
Contributor

@bgreni bgreni commented Jun 14, 2024

Add benchmarks for lcm and gcd functions

@bgreni bgreni requested a review from a team as a code owner June 14, 2024 02:46
Copy link
Collaborator

@JoeLoser JoeLoser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!sync

@JoeLoser
Copy link
Collaborator

!sync

@modularbot modularbot added the imported-internally Signals that a given pull request has been imported internally. label Jun 14, 2024
@bgreni bgreni force-pushed the add-lcm-gcd-benchmark branch 2 times, most recently from e1202b4 to 3a53b3a Compare June 17, 2024 21:57
@soraros

This comment was marked as resolved.

@bgreni bgreni force-pushed the add-lcm-gcd-benchmark branch 2 times, most recently from 4b9a6c6 to 3e47510 Compare June 17, 2024 22:48
@bgreni bgreni force-pushed the add-lcm-gcd-benchmark branch 4 times, most recently from 1831c5c to afd0489 Compare July 2, 2024 22:34
@bgreni bgreni force-pushed the add-lcm-gcd-benchmark branch 2 times, most recently from a33a17b to b2d5887 Compare July 11, 2024 02:16
modularbot pushed a commit that referenced this pull request Jul 17, 2024
There's no need for `math.lcm` to take ownership of its arguments.
Remove the `owned` keyword so the default argument convention of
`borrowed` is used for the function arguments. This will also simplify
#3041.

MODULAR_ORIG_COMMIT_REV_ID: 782c1016c7fe287fc21115504e75098431fe80dd
@JoeLoser JoeLoser added the blocked Blocked by another issue that must be resolved first label Jul 17, 2024
@JoeLoser
Copy link
Collaborator

When importing this and playing with it (and adding a necessary benchmark.keep call to the function), it hit a compiler error. I filed an issue internally, but this is blocked until then.

Signed-off-by: Brian Grenier <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Blocked by another issue that must be resolved first imported-internally Signals that a given pull request has been imported internally.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants