Bitcoin Core 31.99.0
P2P Digital Currency
Functions
asmap.cpp File Reference
#include <bench/bench.h>
#include <netbase.h>
#include <netgroup.h>
#include <node/data/ip_asn.dat.h>
#include <random.h>
#include <util/asmap.h>
#include <algorithm>
#include <array>
#include <cassert>
#include <span>
#include <string>
Include dependency graph for asmap.cpp:

Go to the source code of this file.

Functions

static void BenchGetMappedAS (benchmark::Bench &bench, std::span< const CNetAddr > addrs, bool check=true)
 
static CNetAddr LookupAddr (const std::string &address)
 
static void ASMapGetMappedASQuad9v4 (benchmark::Bench &bench)
 
static void ASMapGetMappedASQuad9v6 (benchmark::Bench &bench)
 
static void ASMapGetMappedASCloudflarev4 (benchmark::Bench &bench)
 
static void ASMapGetMappedASCloudflarev6 (benchmark::Bench &bench)
 
static void ASMapGetMappedASGooglev4 (benchmark::Bench &bench)
 
static void ASMapGetMappedASGooglev6 (benchmark::Bench &bench)
 
static void ASMapGetMappedASUnmappedv4 (benchmark::Bench &bench)
 
static void ASMapGetMappedASUnmappedv6 (benchmark::Bench &bench)
 
static void ASMapGetMappedASMulti (benchmark::Bench &bench)
 
 BENCHMARK (ASMapGetMappedASQuad9v4)
 
 BENCHMARK (ASMapGetMappedASQuad9v6)
 
 BENCHMARK (ASMapGetMappedASCloudflarev4)
 
 BENCHMARK (ASMapGetMappedASCloudflarev6)
 
 BENCHMARK (ASMapGetMappedASGooglev4)
 
 BENCHMARK (ASMapGetMappedASGooglev6)
 
 BENCHMARK (ASMapGetMappedASUnmappedv4)
 
 BENCHMARK (ASMapGetMappedASUnmappedv6)
 
 BENCHMARK (ASMapGetMappedASMulti)
 

Function Documentation

◆ ASMapGetMappedASCloudflarev4()

static void ASMapGetMappedASCloudflarev4 ( benchmark::Bench bench)
static

Definition at line 48 of file asmap.cpp.

Here is the call graph for this function:

◆ ASMapGetMappedASCloudflarev6()

static void ASMapGetMappedASCloudflarev6 ( benchmark::Bench bench)
static

Definition at line 54 of file asmap.cpp.

Here is the call graph for this function:

◆ ASMapGetMappedASGooglev4()

static void ASMapGetMappedASGooglev4 ( benchmark::Bench bench)
static

Definition at line 60 of file asmap.cpp.

Here is the call graph for this function:

◆ ASMapGetMappedASGooglev6()

static void ASMapGetMappedASGooglev6 ( benchmark::Bench bench)
static

Definition at line 66 of file asmap.cpp.

Here is the call graph for this function:

◆ ASMapGetMappedASMulti()

static void ASMapGetMappedASMulti ( benchmark::Bench bench)
static

Definition at line 86 of file asmap.cpp.

Here is the call graph for this function:

◆ ASMapGetMappedASQuad9v4()

static void ASMapGetMappedASQuad9v4 ( benchmark::Bench bench)
static

Definition at line 36 of file asmap.cpp.

Here is the call graph for this function:

◆ ASMapGetMappedASQuad9v6()

static void ASMapGetMappedASQuad9v6 ( benchmark::Bench bench)
static

Definition at line 42 of file asmap.cpp.

Here is the call graph for this function:

◆ ASMapGetMappedASUnmappedv4()

static void ASMapGetMappedASUnmappedv4 ( benchmark::Bench bench)
static

Definition at line 72 of file asmap.cpp.

Here is the call graph for this function:

◆ ASMapGetMappedASUnmappedv6()

static void ASMapGetMappedASUnmappedv6 ( benchmark::Bench bench)
static

Definition at line 79 of file asmap.cpp.

Here is the call graph for this function:

◆ BenchGetMappedAS()

static void BenchGetMappedAS ( benchmark::Bench bench,
std::span< const CNetAddr addrs,
bool  check = true 
)
static

Definition at line 18 of file asmap.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BENCHMARK() [1/9]

◆ BENCHMARK() [2/9]

◆ BENCHMARK() [3/9]

BENCHMARK ( ASMapGetMappedASGooglev4  )

◆ BENCHMARK() [4/9]

BENCHMARK ( ASMapGetMappedASGooglev6  )

◆ BENCHMARK() [5/9]

BENCHMARK ( ASMapGetMappedASMulti  )

◆ BENCHMARK() [6/9]

BENCHMARK ( ASMapGetMappedASQuad9v4  )

◆ BENCHMARK() [7/9]

BENCHMARK ( ASMapGetMappedASQuad9v6  )

◆ BENCHMARK() [8/9]

BENCHMARK ( ASMapGetMappedASUnmappedv4  )

◆ BENCHMARK() [9/9]

BENCHMARK ( ASMapGetMappedASUnmappedv6  )

◆ LookupAddr()

static CNetAddr LookupAddr ( const std::string &  address)
static

Definition at line 34 of file asmap.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: