// Copyright (c) 2019 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <cinttypes> #include <cstdio> #include <string> #include "gtest/gtest.h" #include "benchmark/benchmark.h" #include "db/version_set.h" #include "leveldb/comparator.h" #include "leveldb/db.h" #include "leveldb/env.h" #include "leveldb/options.h" #include "port/port.h" #include "util/mutexlock.h" #include "util/testutil.h" namespace leveldb { namespace { std::string MakeKey(unsigned int num) { … } void BM_LogAndApply(benchmark::State& state) { … } BENCHMARK(…); } // namespace } // namespace leveldb BENCHMARK_MAIN(…);