google/benchmark

benchmark::MakeUnpredictable

Open

#341 opened on Feb 11, 2017

View on GitHub
 (13 comments) (0 reactions) (1 assignee)C++ (1,539 forks)batch import
enhancementhelp wantedincomplete

Repository metrics

Stars
 (7,968 stars)
PR merge metrics
 (Avg merge 4d 2h) (19 merged PRs in 30d)

Description

folly::benchmark includes makeUnpredictable 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