chromium/components/subresource_filter/core/common/perftests/indexed_ruleset_perftest.cc

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

#include <algorithm>
#include <fstream>
#include <memory>
#include <sstream>
#include <string>
#include <utility>

#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_refptr.h"
#include "base/path_service.h"
#include "base/time/time.h"
#include "base/timer/elapsed_timer.h"
#include "components/subresource_filter/core/common/memory_mapped_ruleset.h"
#include "components/subresource_filter/tools/filter_tool.h"
#include "components/subresource_filter/tools/indexing_tool.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"

namespace subresource_filter {

namespace {

static constexpr char kMetricIndexAndWriteTimeUs[] =;
static constexpr char kMetricMedianMatchTimeUs[] =;

}  // namespace

class IndexedRulesetPerftest : public testing::Test {};

TEST_F(IndexedRulesetPerftest, IndexRuleset) {}

TEST_F(IndexedRulesetPerftest, MatchAll) {}

}  // namespace subresource_filter