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

[ci skip] Add benchmark your code section to contributing to ruby on rails guide. #15347

Merged
merged 1 commit into from
May 26, 2014
Merged

[ci skip] Add benchmark your code section to contributing to ruby on rails guide. #15347

merged 1 commit into from
May 26, 2014

Conversation

JuanitoFatas
Copy link
Contributor

I have seen many times that maintainers want people to use this gem to give
a benchmark report. It would be nice to add it and refer to it later.

@rafaelfranca
Copy link
Member

Seems good to me. @zzak WDYT about the gramar?

@JuanitoFatas
Copy link
Contributor Author

screenshot 2014-05-27 03 55 48

@JuanitoFatas
Copy link
Contributor Author

I use some words from Mr @tenderlove's comments on #15272 (comment).

@chancancode
Copy link
Member

👍 on the idea. Would need to expand more on the introduction paragraph to explain "why". Things like you should only do this if it's in fact a hot path and a bottleneck, readability and understandability are also important, etc etc.

But this is a good start. We can even do those after we merge his.

@@ -215,6 +215,40 @@ Rails follows a simple set of coding style conventions:

The above are guidelines - please use your best judgment in using them.

### Benchmark Your Code

Please use [benchmark-ips](https://github.com/evanphx/benchmark-ips) Gem to
Copy link
Member

Choose a reason for hiding this comment

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

Please use the [benchmark-ips] gem to

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! Updated.

@zzak
Copy link
Member

zzak commented May 26, 2014

@JuanitoFatas Please apply my suggestions, squash, and I will commit.

@JuanitoFatas
Copy link
Contributor Author

@zzak I have applied your suggestions. Thanks! 👍
@rafaelfranca @fxn @chancancode Thanks for the feedback. Now we have a starting point if someone wants to expand this further.

@zzak
Copy link
Member

zzak commented May 26, 2014

IMO we could expand on this further in the performance testing guide ;)

…rails guide.

I have seen many times that maintainers want people to use this gem to give
a benchmark report. It would be nice to add it and refer to it later.
zzak pushed a commit that referenced this pull request May 26, 2014
…-to-ror

[ci skip] Add benchmark your code section to contributing to ruby on rails guide.
@zzak zzak merged commit 5af6120 into rails:master May 26, 2014
@JuanitoFatas JuanitoFatas deleted the benchmark-in-contributing-to-ror branch May 26, 2014 21:15
@zzak
Copy link
Member

zzak commented May 26, 2014

@JuanitoFatas Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants