diff options
author | ilnaz <[email protected]> | 2022-07-21 09:45:49 +0300 |
---|---|---|
committer | ilnaz <[email protected]> | 2022-07-21 09:45:49 +0300 |
commit | fab0834c2c9d7652c3b4b3897654a85b3fbb7885 (patch) | |
tree | 34d27f24cfe9c87ce9e6ce9b8866cc122d9b8e34 /contrib/libs/benchmark/src/statistics.cc | |
parent | 6b94014b1082ce9c3c702bdc7051efd00658da1b (diff) |
Get rid of 'streamImpl' in responses
Diffstat (limited to 'contrib/libs/benchmark/src/statistics.cc')
-rw-r--r-- | contrib/libs/benchmark/src/statistics.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/contrib/libs/benchmark/src/statistics.cc b/contrib/libs/benchmark/src/statistics.cc index 3e5ef099397..5ba885ab005 100644 --- a/contrib/libs/benchmark/src/statistics.cc +++ b/contrib/libs/benchmark/src/statistics.cc @@ -118,11 +118,13 @@ std::vector<BenchmarkReporter::Run> ComputeStats( for (auto const& cnt : r.counters) { auto it = counter_stats.find(cnt.first); if (it == counter_stats.end()) { - counter_stats.insert({cnt.first, {cnt.second, std::vector<double>{}}}); - it = counter_stats.find(cnt.first); + it = counter_stats + .emplace(cnt.first, + CounterStat{cnt.second, std::vector<double>{}}) + .first; it->second.s.reserve(reports.size()); } else { - BM_CHECK_EQ(counter_stats[cnt.first].c.flags, cnt.second.flags); + BM_CHECK_EQ(it->second.c.flags, cnt.second.flags); } } } |