mirror of
https://github.com/google/benchmark.git
synced 2025-03-31 22:50:14 +08:00
Fix some errors in Custom Statistics demo code. (#1332)
This commit is contained in:
parent
acd7562034
commit
57b2bfa33b
@ -1058,7 +1058,7 @@ void BM_spin_empty(benchmark::State& state) {
|
|||||||
BENCHMARK(BM_spin_empty)
|
BENCHMARK(BM_spin_empty)
|
||||||
->ComputeStatistics("ratio", [](const std::vector<double>& v) -> double {
|
->ComputeStatistics("ratio", [](const std::vector<double>& v) -> double {
|
||||||
return std::begin(v) / std::end(v);
|
return std::begin(v) / std::end(v);
|
||||||
}, benchmark::StatisticUnit::Percentage)
|
}, benchmark::StatisticUnit::kPercentage)
|
||||||
->Arg(512);
|
->Arg(512);
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user