proxygen
FBVectorBenchmark.cpp File Reference
#include <deque>
#include <list>
#include <memory>
#include <string>
#include <boost/random.hpp>
#include <folly/FBVector.h>
#include <folly/Traits.h>
#include <folly/container/Foreach.h>
#include <folly/portability/GFlags.h>
#include <folly/small_vector.h>
#include <folly/test/FBVectorTestUtil.h>
#include <folly/test/FBVectorBenchmarks.cpp.h>

Go to the source code of this file.

Macros

#define VECTOR   IntVector
 
#define VECTOR   IntFBVector
 
#define VECTOR   IntSmallVector
 
#define VECTOR   IntList
 
#define SKIP_RESERVE
 
#define VECTOR   IntDeque
 
#define SKIP_RESERVE
 
#define VECTOR   StringVector
 
#define VECTOR   StringFBVector
 
#define VECTOR   StringSmallVector
 
#define VECTOR   StringList
 
#define SKIP_RESERVE
 
#define VECTOR   StringDeque
 
#define SKIP_RESERVE
 
#define VECTOR   FBStringVector
 
#define VECTOR   FBStringFBVector
 

Typedefs

using IntVector = vector< int >
 
using IntFBVector = fbvector< int >
 
using IntList = list< int >
 
using IntDeque = deque< int >
 
using IntSmallVector = small_vector< int >
 
using StringVector = vector< std::string >
 
using StringFBVector = fbvector< std::string >
 
using StringList = list< std::string >
 
using StringDeque = deque< std::string >
 
using StringSmallVector = small_vector< std::string >
 
using FBStringVector = vector< folly::fbstring >
 
using FBStringFBVector = fbvector< folly::fbstring >
 

Functions

int main (int argc, char **argv)
 

Macro Definition Documentation

#define SKIP_RESERVE

Definition at line 88 of file FBVectorBenchmark.cpp.

#define SKIP_RESERVE

Definition at line 88 of file FBVectorBenchmark.cpp.

#define SKIP_RESERVE

Definition at line 88 of file FBVectorBenchmark.cpp.

#define SKIP_RESERVE

Definition at line 88 of file FBVectorBenchmark.cpp.

#define VECTOR   IntVector
#define VECTOR   IntFBVector

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   IntSmallVector

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   IntList

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   IntDeque

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   StringVector

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   StringFBVector

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   StringSmallVector

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   StringList

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   StringDeque

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   FBStringVector

Definition at line 96 of file FBVectorBenchmark.cpp.

#define VECTOR   FBStringFBVector

Definition at line 96 of file FBVectorBenchmark.cpp.

Typedef Documentation

Definition at line 51 of file FBVectorBenchmark.cpp.

Definition at line 50 of file FBVectorBenchmark.cpp.

using IntDeque = deque<int>

Definition at line 41 of file FBVectorBenchmark.cpp.

using IntFBVector = fbvector<int>

Definition at line 39 of file FBVectorBenchmark.cpp.

using IntList = list<int>

Definition at line 40 of file FBVectorBenchmark.cpp.

Definition at line 42 of file FBVectorBenchmark.cpp.

using IntVector = vector<int>

Definition at line 38 of file FBVectorBenchmark.cpp.

Definition at line 47 of file FBVectorBenchmark.cpp.

Definition at line 45 of file FBVectorBenchmark.cpp.

using StringList = list<std::string>

Definition at line 46 of file FBVectorBenchmark.cpp.

Definition at line 48 of file FBVectorBenchmark.cpp.

using StringVector = vector<std::string>

Definition at line 44 of file FBVectorBenchmark.cpp.

Function Documentation

int main ( int  argc,
char **  argv 
)

Definition at line 100 of file FBVectorBenchmark.cpp.

References folly::runBenchmarks().

100  {
101  gflags::ParseCommandLineFlags(&argc, &argv, true);
102  gflags::SetCommandLineOptionWithMode(
103  "bm_max_iters", "1000000", gflags::SET_FLAG_IF_DEFAULT);
104  gflags::SetCommandLineOptionWithMode(
105  "bm_min_iters", "100000", gflags::SET_FLAG_IF_DEFAULT);
106  gflags::SetCommandLineOptionWithMode(
107  "bm_max_secs", "1", gflags::SET_FLAG_IF_DEFAULT);
108 
110  return 0;
111 }
void runBenchmarks()
Definition: Benchmark.cpp:456
char ** argv