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

Remove unnecessary bit operation. #665

Merged
merged 1 commit into from Apr 12, 2019
Merged

Remove unnecessary bit operation. #665

merged 1 commit into from Apr 12, 2019

Conversation

ghost
Copy link

@ghost ghost commented Mar 22, 2019

No description provided.

@pwnall pwnall self-requested a review March 26, 2019 07:06
Copy link
Member

@pwnall pwnall left a comment

Choose a reason for hiding this comment

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

The change is correct.

This godbolt snippet shows that all popular optimizing compilers catch the fact that the "and" is unnecessary. So, I agree that we should remove it.

@pwnall
Copy link
Member

pwnall commented Mar 26, 2019

@cmumford Can you please bring this into the internal repository?

@ghost
Copy link
Author

ghost commented Apr 9, 2019

@pwnall @cmumford are there any more comments on the PR?

@cmumford
Copy link
Contributor

Should be merged shortly.

@cmumford cmumford merged commit cf1b5f4 into google:master Apr 12, 2019
cmumford added a commit that referenced this pull request Apr 12, 2019
PiperOrigin-RevId: 243316002
maochongxin pushed a commit to maochongxin/leveldb that referenced this pull request Jul 21, 2022
There is a flag 
https://github.com/google/benchmark/blob/d9cab612e40017af10bddaa5b60c7067032a9e1c/src/benchmark.cc#L75-L78
and a call
https://github.com/google/benchmark/blob/d9cab612e40017af10bddaa5b60c7067032a9e1c/include/benchmark/benchmark.h#L837-L840
But that affects everything, every reporter, destination:
https://github.com/google/benchmark/blob/d9cab612e40017af10bddaa5b60c7067032a9e1c/src/benchmark.cc#L316


It would be quite useful to have an ability to be more picky.


More specifically, i would like to be able to only see the aggregates in the on-screen output,
but for the file output to still contain everything. The former is useful in case of a lot of repetition
(or even more so if every iteration is reported separately), while the former is **great** for tooling.

Fixes google/benchmark#664
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.

3 participants