#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/memory/ptr_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/time/time.h"
#include "base/values.h"
#include "build/build_config.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"
namespace base {
namespace {
constexpr char kMetricPrefixJSON[] = …;
constexpr char kMetricReadTime[] = …;
constexpr char kMetricWriteTime[] = …;
perf_test::PerfResultReporter SetUpReporter(const std::string& story_name) { … }
Value::Dict GenerateDict() { … }
Value::Dict GenerateLayeredDict(int breadth, int depth) { … }
}
class JSONPerfTest : public testing::Test { … };
TEST_F(JSONPerfTest, StressTest) { … }
}