Bitcoin
Classes | Namespaces | Functions | Variables
db_bench_tree_db.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <kcpolydb.h>
#include "util/histogram.h"
#include "util/random.h"
#include "util/testutil.h"

Classes

class  leveldb::anonymous_namespace{db_bench_tree_db.cc}::RandomGenerator
 
class  leveldb::Benchmark
 

Namespaces

 leveldb
 
 leveldb::anonymous_namespace{db_bench_tree_db.cc}
 

Functions

static void DBSynchronize (kyotocabinet::TreeDB *db_)
 
static Slice leveldb::anonymous_namespace{db_bench_tree_db.cc}::TrimSpace (Slice s)
 
int main (int argc, char **argv)
 

Variables

static const char * FLAGS_benchmarks
 
static int FLAGS_num = 1000000
 
static int FLAGS_reads = -1
 
static int FLAGS_value_size = 100
 
static double FLAGS_compression_ratio = 0.5
 
static bool FLAGS_histogram = false
 
static int FLAGS_cache_size = 4194304
 
static int FLAGS_page_size = 1024
 
static bool FLAGS_use_existing_db = false
 
static bool FLAGS_compression = true
 
static const char * FLAGS_db = NULL
 

Function Documentation

◆ DBSynchronize()

static void DBSynchronize ( kyotocabinet::TreeDB *  db_)
inlinestatic

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ FLAGS_benchmarks

const char* FLAGS_benchmarks
static
Initial value:
=
"fillseq,"
"fillseqsync,"
"fillrandsync,"
"fillrandom,"
"overwrite,"
"readrandom,"
"readseq,"
"fillrand100K,"
"fillseq100K,"
"readseq100K,"
"readrand100K,"

◆ FLAGS_cache_size

int FLAGS_cache_size = 4194304
static

◆ FLAGS_compression

bool FLAGS_compression = true
static

◆ FLAGS_compression_ratio

double FLAGS_compression_ratio = 0.5
static

◆ FLAGS_db

const char* FLAGS_db = NULL
static

◆ FLAGS_histogram

bool FLAGS_histogram = false
static

◆ FLAGS_num

int FLAGS_num = 1000000
static

◆ FLAGS_page_size

int FLAGS_page_size = 1024
static

◆ FLAGS_reads

int FLAGS_reads = -1
static

◆ FLAGS_use_existing_db

bool FLAGS_use_existing_db = false
static

◆ FLAGS_value_size

int FLAGS_value_size = 100
static