#include <climits>
#include <assert.h>
#include <atomic>
#include <random>
#include <string>
#include <cstdint>
#include <stdio.h>
#include <iostream>
#include <gflags/gflags.h>
#include <tervel/tests/hash_map/container_api.h>
Go to the source code of this file.
|
| DEFINE_int32 (capacity, 64,"The initial capacity of the hash map") |
| Change this when including a new data structure. More...
|
|
| DEFINE_int32 (prefill, 0,"The number of elements to be initially inserted.") |
|
| DEFINE_int32 (insert_rate, 25,"The percent of insert operations.") |
|
| DEFINE_int32 (find_rate, 25,"The percent of find operations.") |
|
| DEFINE_int32 (update_rate, 25,"The percent of update operations.") |
|
| DEFINE_int32 (remove_rate, 25,"The percent of remove 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 MACRO_ADD_RATE |
( |
|
TervelOpName | ) |
|
Value:func_name_[op_codes::TervelOpName] = "" #TervelOpName ; \
func_call_rate_[op_codes::TervelOpName] = FLAGS_##TervelOpName##_rate;
DEFINE_int32 |
( |
capacity |
, |
|
|
64 |
, |
|
|
"The initial capacity of the hash map" |
|
|
) |
| |
Change this when including a new data structure.
Change these when adapting to a new data structures
DEFINE_int32 |
( |
prefill |
, |
|
|
0 |
, |
|
|
"The number of elements to be initially inserted." |
|
|
) |
| |
DEFINE_int32 |
( |
insert_rate |
, |
|
|
25 |
, |
|
|
"The percent of insert operations." |
|
|
) |
| |
DEFINE_int32 |
( |
find_rate |
, |
|
|
25 |
, |
|
|
"The percent of find operations." |
|
|
) |
| |
DEFINE_int32 |
( |
update_rate |
, |
|
|
25 |
, |
|
|
"The percent of update operations." |
|
|
) |
| |
DEFINE_int32 |
( |
remove_rate |
, |
|
|
25 |
, |
|
|
"The percent of remove operations." |
|
|
) |
| |
DEFINE_int32 |
( |
num_threads |
, |
|
|
1 |
, |
|
|
"The number of executing threads." |
|
|
) |
| |
DEFINE_int32 |
( |
execution_time |
, |
|
|
5 |
, |
|
|
"The amount of time to run the tests" |
|
|
) |
| |