chromium/third_party/blink/renderer/platform/heap/test/write_barrier_perftest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/functional/callback.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"
#include "third_party/blink/renderer/platform/heap/collection_support/heap_vector.h"
#include "third_party/blink/renderer/platform/heap/heap_test_utilities.h"
#include "third_party/blink/renderer/platform/heap/persistent.h"

namespace blink {

class WriteBarrierPerfTest : public TestSupportingGC {};

namespace {

constexpr char kMetricPrefixWriteBarrier[] =;
constexpr char kMetricWritesDuringGcRunsPerS[] =;
constexpr char kMetricWritesOutsideGcRunsPerS[] =;
constexpr char kMetricRelativeSpeedDifferenceUnitless[] =;

perf_test::PerfResultReporter SetUpReporter(const std::string& story_name) {}

class PerfDummyObject : public GarbageCollected<PerfDummyObject> {};

base::TimeDelta TimedRun(base::RepeatingCallback<void()> callback) {}

}  // namespace

TEST_F(WriteBarrierPerfTest, MemberWritePerformance) {}

}  // namespace blink