-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Add benchmark #2855
Add benchmark #2855
Conversation
Add benchmark rake task for evaluating time execution. Fixes Co-authored-by: Rubens Fernandes <rubens.fernandes97@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent contribution, thanks for working on this!
This is a great first step to help us improve the performance of the gem. 🙏
Thanks @salochara and @okaydokay97 for working on this!
I just left one suggestion, let me know what you think.
- Build all_methods outside the benchmark since we don't want to measure that.
f531b8e
to
3fb283e
Compare
Hi @thdaraujo ! This is looking good! Probably we can create an "issue" here on GH have a simple draft on next steps, things to do. Would love to keep on contributing ! All the best! 🙏🏼 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you both! I left a small suggestion.
In terms of the next steps, I added a comment in the issue to keep things centralized there.
- Avoid calling the same object twice
Done! ✅ Awesome... I'll have a look at it whenever I get a chance. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for working on this! Excited to see how we can improve faker's performance :)
Motivation / Background
Fixes #2851
In this PR, @okaydokay97 and I are adding a rake task to run a benchmark on every Faker generator!
Here's a screenshot of the results:
Additional information
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]