#include <climits>
#include <assert.h>
#include <atomic>
#include <random>
#include <string>
#include <cstdint>
#include <stdio.h>
#include <iostream>
#include <gflags/gflags.h>
Go to the source code of this file.
|
| DEFINE_int32 (capacity, 64,"The initial capacity of the container") |
| Change these when adapting to a new data structures. More...
|
|
| DEFINE_int32 (prefill, 0,"The number of elements to be initially inserted.") |
|
| DEFINE_int32 (enqueue_rate, 60,"The percent of insert operations.") |
|
| DEFINE_int32 (dequeue_rate, 40,"The percent of find operations.") |
|
| DEFINE_int32 (num_threads, 1,"The number of executing threads.") |
| Arguments for Tester. More...
|
|
| DEFINE_int32 (execution_time, 5,"The amount of time to run the tests") |
|
#define __tervel_str |
( |
|
s | ) |
#s |
#define MACRO_ADD_RATE |
( |
|
TervelOpName | ) |
|
Value:func_name_[op_codes::TervelOpName] = "" #TervelOpName ; \
func_call_rate_[op_codes::TervelOpName] = FLAGS_##TervelOpName##_rate; \
func_call_count_[op_codes::TervelOpName].store(0);
DEFINE_int32 |
( |
capacity |
, |
|
|
64 |
, |
|
|
"The initial capacity of the container" |
|
|
) |
| |
Change these when adapting to a new data structures.
DEFINE_int32 |
( |
prefill |
, |
|
|
0 |
, |
|
|
"The number of elements to be initially inserted." |
|
|
) |
| |
DEFINE_int32 |
( |
enqueue_rate |
, |
|
|
60 |
, |
|
|
"The percent of insert operations." |
|
|
) |
| |
DEFINE_int32 |
( |
dequeue_rate |
, |
|
|
40 |
, |
|
|
"The percent of find operations." |
|
|
) |
| |
DEFINE_int32 |
( |
num_threads |
, |
|
|
1 |
, |
|
|
"The number of executing threads." |
|
|
) |
| |
DEFINE_int32 |
( |
execution_time |
, |
|
|
5 |
, |
|
|
"The amount of time to run the tests" |
|
|
) |
| |
const int32_t FLAGS_faildequeue_rate = 0 |
const int32_t FLAGS_failenqueue_rate = 0 |