Tervel  1.0.0
A collection of wait-free containers and algorithms.
Classes | Macros | Typedefs | Functions | Variables
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>

Go to the source code of this file.

Classes

class  TestObject
 

Macros

#define __tervel_xstr(s)   __tervel_str(s)
 
#define __tervel_str(s)   #s
 
#define MACRO_ADD_RATE(TervelOpName)
 

Typedefs

typedef int64_t Value
 

Functions

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

Variables

const int32_t FLAGS_failenqueue_rate = 0
 
const int32_t FLAGS_faildequeue_rate = 0
 

Macro Definition Documentation

#define __tervel_str (   s)    #s
#define __tervel_xstr (   s)    __tervel_str(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);

Typedef Documentation

typedef int64_t Value

Function Documentation

DEFINE_int32 ( capacity  ,
64  ,
"The initial capacity of the container"   
)

Change these when adapting to a new data structures.

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

Arguments for Tester.

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

Variable Documentation

const int32_t FLAGS_faildequeue_rate = 0
const int32_t FLAGS_failenqueue_rate = 0