Logo Search packages:      
Sourcecode: leveldb version File versions  Download package

Classes | Public Types | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes

leveldb::Benchmark Class Reference

Collaboration diagram for leveldb::Benchmark:
Collaboration graph
[legend]

List of all members.

Classes

struct  ThreadArg

Public Types

enum  DBState { FRESH, EXISTING, FRESH, EXISTING }
enum  DBState { FRESH, EXISTING, FRESH, EXISTING }
enum  Order { SEQUENTIAL, RANDOM, SEQUENTIAL, RANDOM }
enum  Order { SEQUENTIAL, RANDOM, SEQUENTIAL, RANDOM }

Public Member Functions

void Open ()
void Read (Order order, int entries_per_batch)
void ReadSequential ()
void Run ()
void Run ()
void Run ()
void Write (bool write_sync, Order order, DBState state, int num_entries, int value_size, int entries_per_batch)

Private Member Functions

void AcquireLoad (ThreadState *thread)
void Compact (ThreadState *thread)
void Crc32c (ThreadState *thread)
void DoWrite (ThreadState *thread, bool seq)
void FinishedSingleOp ()
void FinishedSingleOp ()
void HeapProfile ()
void Open ()
void Open (bool sync)
void PrintEnvironment ()
void PrintEnvironment ()
void PrintEnvironment ()
void PrintHeader ()
void PrintHeader ()
void PrintHeader ()
void PrintStats ()
void PrintWarnings ()
void PrintWarnings ()
void PrintWarnings ()
void ReadHot (ThreadState *thread)
void ReadRandom ()
void ReadRandom (ThreadState *thread)
void ReadReverse (ThreadState *thread)
void ReadSequential ()
void ReadSequential (ThreadState *thread)
void ReadWhileWriting (ThreadState *thread)
void RunBenchmark (int n, Slice name, void(Benchmark::*method)(ThreadState *))
void SnappyCompress (ThreadState *thread)
void SnappyUncompress (ThreadState *thread)
void Start ()
void Start ()
void Stop (const Slice &name)
void Stop (const Slice &name)
void Write (bool sync, Order order, DBState state, int num_entries, int value_size, int entries_per_batch)
void WriteRandom (ThreadState *thread)
void WriteSeq (ThreadState *thread)

Static Private Member Functions

static void ThreadBody (void *v)
static void WriteToFile (void *arg, const char *buf, int n)

Private Attributes

int64_t bytes_
Cachecache_
kyotocabinet::LZOCompressor
< kyotocabinet::LZO::RAW > 
comp_
sqlite3 * db_
DBdb_
kyotocabinet::TreeDB * db_
int db_num_
int done_
int entries_per_batch_
RandomGenerator gen_
int heap_counter_
Histogram hist_
double last_op_finish_
std::string message_
int next_report_
int num_
Random rand_
int reads_
double start_
int value_size_
WriteOptions write_options_

Detailed Description

Definition at line 293 of file db_bench.cc.


The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index