#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/vector/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 (cas_rate, 20,"The chance (0-100) of the CAS operation being called.") |
|
| DEFINE_int32 (at_rate, 20,"The chance (0-100) of the at operation being called.") |
|
| DEFINE_int32 (pushBack_rate, 20,"The chance (0-100) of pushBack operation being called.") |
|
| DEFINE_int32 (popBack_rate, 20,"The chance (0-100) of popBack operation being called.") |
|
| DEFINE_int32 (size_rate, 20,"The chance (0-100) of size operation being called.") |
|
| 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 |
( |
cas_rate |
, |
|
|
20 |
, |
|
|
"The chance (0-100) of the CAS operation being called." |
|
|
) |
| |
DEFINE_int32 |
( |
at_rate |
, |
|
|
20 |
, |
|
|
"The chance (0-100) of the at operation being called." |
|
|
) |
| |
DEFINE_int32 |
( |
pushBack_rate |
, |
|
|
20 |
, |
|
|
"The chance (0-100) of pushBack operation being called." |
|
|
) |
| |
DEFINE_int32 |
( |
popBack_rate |
, |
|
|
20 |
, |
|
|
"The chance (0-100) of popBack operation being called." |
|
|
) |
| |
DEFINE_int32 |
( |
size_rate |
, |
|
|
20 |
, |
|
|
"The chance (0-100) of size operation being called." |
|
|
) |
| |
DEFINE_int32 |
( |
num_threads |
, |
|
|
1 |
, |
|
|
"The number of executing threads." |
|
|
) |
| |
DEFINE_int32 |
( |
execution_time |
, |
|
|
5 |
, |
|
|
"The amount of time to run the tests" |
|
|
) |
| |