google / google/benchmark

benchmark::MakeUnpredictable

Open
#341 13 comments 0 reactions 1 assignee Claimed by @EricWF View on GitHub
enhancement help wanted incomplete
Dominant language
C++
Stars
10.4k
Forks
1.8k
Avg merge
2d 4h
Merged PRs (30d)
8

Description

`folly::benchmark` includes [makeUnpredictable](https://github.com/facebook/folly/blob/e0b75e77cc224d3caffbb717342873c858e893fe/folly/Benchmark.h#L203) function to hide a compile-time constant value of a variable from optimizer. This is a very useful feature, and `google::benchmark` should provide something similar.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.