google/benchmark

benchmark::MakeUnpredictable

Open

#341 opened on Feb 11, 2017

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

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

benchmark::MakeUnpredictable · google/benchmark#341 | Good First Issue