proxygen
|
#include <folly/experimental/ReadMostlySharedPtr.h>
#include <iostream>
#include <thread>
#include <folly/Benchmark.h>
#include <folly/Memory.h>
#include <folly/portability/GFlags.h>
Go to the source code of this file.
Typedefs | |
template<typename T > | |
using | TLMainPtr = folly::ReadMostlyMainPtr< T, folly::TLRefCount > |
template<typename T > | |
using | TLWeakPtr = folly::ReadMostlyWeakPtr< T, folly::TLRefCount > |
Functions | |
template<template< typename > class MainPtr, template< typename > class WeakPtr, size_t threadCount> | |
void | benchmark (size_t n) |
BENCHMARK (WeakPtrOneThread, n) | |
BENCHMARK (WeakPtrFourThreads, n) | |
BENCHMARK (TLReadMostlyWeakPtrOneThread, n) | |
BENCHMARK (TLReadMostlyWeakPtrFourThreads, n) | |
int | main (int argc, char **argv) |
using TLMainPtr = folly::ReadMostlyMainPtr<T, folly::TLRefCount> |
Definition at line 54 of file ReadMostlySharedPtrBenchmark.cpp.
using TLWeakPtr = folly::ReadMostlyWeakPtr<T, folly::TLRefCount> |
Definition at line 56 of file ReadMostlySharedPtrBenchmark.cpp.
void benchmark | ( | size_t | n | ) |
Definition at line 31 of file ReadMostlySharedPtrBenchmark.cpp.
References FOLLY_NOINLINE, i, and folly::pushmi::detail::t.
BENCHMARK | ( | WeakPtrOneThread | , |
n | |||
) |
Definition at line 58 of file ReadMostlySharedPtrBenchmark.cpp.
BENCHMARK | ( | WeakPtrFourThreads | , |
n | |||
) |
Definition at line 62 of file ReadMostlySharedPtrBenchmark.cpp.
BENCHMARK | ( | TLReadMostlyWeakPtrOneThread | , |
n | |||
) |
Definition at line 66 of file ReadMostlySharedPtrBenchmark.cpp.
BENCHMARK | ( | TLReadMostlyWeakPtrFourThreads | , |
n | |||
) |
Definition at line 70 of file ReadMostlySharedPtrBenchmark.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |