#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) { … }
}
TEST_F(WriteBarrierPerfTest, MemberWritePerformance) { … }
}