6 #ifndef INTELLISTREAM_INCLUDE_TESTBENCH_TESTBENCH_H_
7 #define INTELLISTREAM_INCLUDE_TESTBENCH_TESTBENCH_H_
10 #include <Utils/IntelliLog.h>
16 using namespace INTELLI;
17 #define TB_INFO INTELLI_INFO
18 #define TB_ERROR INTELLI_ERROR
19 #define TB_WARNNING INTELLI_WARNING
36 void inOrderSort(std::vector<TrackTuplePtr> &arr);
37 void OoOSort(std::vector<TrackTuplePtr> &arr);
38 void inlineTest(
void);
39 void forceInOrder(std::vector<TrackTuplePtr> &arr);
43 std::vector<TrackTuplePtr> rTuple;
44 std::vector<TrackTuplePtr> sTuple;
56 void setDataLoader(std::string tag,
ConfigMapPtr globalCfg);
76 void setDataSet(std::vector<TrackTuplePtr> _r, std::vector<TrackTuplePtr> _s);
89 size_t inOrderTest(
bool additionalSort);
95 size_t OoOTest(
bool additionalSort);
100 void logRTuples(
bool skipZero =
false);
107 bool saveRTuplesToFile(
string fname,
bool skipZero =
false);
114 bool saveSTuplesToFile(
string fname,
bool skipZero =
false);
119 double getAvgLatency();
124 double getThroughput();
130 double getLatencyPercentage(
double fraction);
The test bench class to feed data.
Definition: TestBench.h:34
size_t sizeOfR()
get the size of loaded r tuple
Definition: TestBench.h:68
size_t sizeOfS()
get the size of loaded s tuple
Definition: TestBench.h:61
std::shared_ptr< class AbstractOperator > AbstractOperatorPtr
The class to describe a shared pointer to AbstractOperator.
Definition: AbstractOperator.h:135
uint64_t tsType
Definition: Tuples.h:20
std::shared_ptr< ConfigMap > ConfigMapPtr
The class to describe a shared pointer to ConfigMap.
Definition: ConfigMap.hpp:356
Definition: OperatorTable.cpp:7