Tervel  1.0.0
A collection of wait-free containers and algorithms.
Classes | Macros | Typedefs | Functions
testObject.h File Reference
#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.

Classes

class  TestObject
 

Macros

#define MACRO_ADD_RATE(TervelOpName)
 

Typedefs

typedef uint64_t Value
 

Functions

 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")
 

Macro Definition Documentation

#define MACRO_ADD_RATE (   TervelOpName)
Value:
func_name_[op_codes::TervelOpName] = "" #TervelOpName ; \
func_call_rate_[op_codes::TervelOpName] = FLAGS_##TervelOpName##_rate;

Typedef Documentation

typedef uint64_t Value

Function Documentation

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  ,
,
"The number of executing threads."   
)

Arguments for Tester.

DEFINE_int32 ( execution_time  ,
,
"The amount of time to run the tests"   
)