First cut at replacing log calls with new perf log.

This commit is contained in:
Pedro Pinto committed 2018-12-05 14:07:05 +00:00
1 parent 4446ef0f57
commit 0219dd2013
22 files changed
+41 -70

No files matched your search

-12
View File
@@ -271,18 +271,6 @@ static void init_with_clean_os(benchmark::State &state) {
}
BENCHMARK(init_with_clean_os);
static void init_with_old_order_update(benchmark::State &state) {
api::orderman::OrderDefinition def;
auto order_state =
utils::pb::from_string<api::orderman::OrderState>(order_state_str);
PerfTrace trace;
OrderKey k(1);
for (auto _ : state)
benchmark::DoNotOptimize(
orderman::OrderStateUpdateEvent(k, k, def, order_state, trace));
}
BENCHMARK(init_with_old_order_update);
static void serialize_update(benchmark::State &state) {
api::orderman::Update update;
update.set_order_key(1);