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

Chapter 1-3: Assignment #5 #7

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Open

Conversation

postmeback
Copy link

This PR contains the solution for Chapter 1-3 assignment.
Issue reference: #5

Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Copy link
Member

@radumarias radumarias left a comment

Choose a reason for hiding this comment

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

very good solution, congrats

just out of curiosity, could you also print the time it takes for each count?

and would be great if you could integrate https://crates.io/crates/criterion because that shows nice numbers and charts too as HTML. if you integrate this you need to extract in a function just the part that generates rand and remove from the vec, and just benchmark that, we we mostly care about this part

@postmeback
Copy link
Author

image

This is the output coming up, however, after implementing criterion,no such benchmark is appearing. I have updated the code base. Please have a look.

Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
Signed-off-by: Arka Poddar <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants