#include <string_view>
#include "base/command_line.h"
#include "base/containers/span.h"
#include "base/json/json_reader.h"
#include "testing/perf/perf_result_reporter.h"
#include "testing/perf/perf_test.h"
#include "third_party/blink/renderer/core/css/container_query_data.h"
#include "third_party/blink/renderer/core/css/parser/css_tokenizer.h"
#include "third_party/blink/renderer/core/css/resolver/style_resolver.h"
#include "third_party/blink/renderer/core/css/style_change_reason.h"
#include "third_party/blink/renderer/core/css/style_engine.h"
#include "third_party/blink/renderer/core/css/style_recalc_change.h"
#include "third_party/blink/renderer/core/css/style_sheet_contents.h"
#include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/dom_token_list.h"
#include "third_party/blink/renderer/core/dom/node_computed_style.h"
#include "third_party/blink/renderer/core/frame/local_frame_view.h"
#include "third_party/blink/renderer/core/html/html_body_element.h"
#include "third_party/blink/renderer/core/loader/empty_clients.h"
#include "third_party/blink/renderer/core/style/computed_style.h"
#include "third_party/blink/renderer/core/testing/no_network_url_loader.h"
#include "third_party/blink/renderer/core/testing/page_test_base.h"
#include "third_party/blink/renderer/platform/heap/process_heap.h"
#include "third_party/blink/renderer/platform/testing/unit_test_helpers.h"
#include "third_party/blink/renderer/platform/testing/url_test_helpers.h"
namespace blink {
static WTF::String StripStyleTags(const WTF::String& html) { … }
static std::unique_ptr<DummyPageHolder> LoadDumpedPage(
const base::Value::Dict& dict,
base::TimeDelta& parse_time,
perf_test::PerfResultReporter* reporter) { … }
struct StylePerfResult { … };
static StylePerfResult MeasureStyleForDumpedPage(
const char* filename,
bool parse_only,
perf_test::PerfResultReporter* reporter) { … }
static void MeasureAndPrintStyleForDumpedPage(const char* filename,
const char* label) { … }
TEST(StyleCalcPerfTest, Video) { … }
TEST(StyleCalcPerfTest, Extension) { … }
TEST(StyleCalcPerfTest, News) { … }
TEST(StyleCalcPerfTest, ECommerce) { … }
TEST(StyleCalcPerfTest, Social1) { … }
TEST(StyleCalcPerfTest, Social2) { … }
TEST(StyleCalcPerfTest, Encyclopedia) { … }
TEST(StyleCalcPerfTest, Sports) { … }
TEST(StyleCalcPerfTest, Search) { … }
TEST(StyleCalcPerfTest, Alexa1000) { … }
}