OmniSketch  0.1
Oh my sketch!
test.h File Reference

Testing classes and metrics. More...

#include "sketch.h"
#include <boost/any.hpp>
#include <ctime>
#include <map>
#include <memory>
#include <set>
Include dependency graph for test.h:
This graph shows which files directly or indirectly include this file:

Classes

class  OmniSketch::Test::MetricVec
 Metric vector. More...
 
class  OmniSketch::Test::TestBase< key_len, T >
 Collection of metrics. More...
 

Namespaces

 OmniSketch
 
 OmniSketch::Test
 Testing classes and metrics.
 

Macros

#define DEFINE_TIMERS
 
#define START_TIMER   tick = std::chrono::steady_clock::now();
 
#define STOP_TIMER
 
#define TIMER_RESULT   static_cast<int64_t>(timer.count())
 

Enumerations

enum  OmniSketch::Test::Metric {
  OmniSketch::Test::SIZE, OmniSketch::Test::TIME, OmniSketch::Test::RATE, OmniSketch::Test::ARE,
  OmniSketch::Test::AAE, OmniSketch::Test::ACC, OmniSketch::Test::TP, OmniSketch::Test::FP,
  OmniSketch::Test::TN, OmniSketch::Test::FN, OmniSketch::Test::PRC, OmniSketch::Test::RCL,
  OmniSketch::Test::F1, OmniSketch::Test::DIST, OmniSketch::Test::PODF, OmniSketch::Test::RATIO
}
 Metrics. More...
 

Detailed Description

Testing classes and metrics.

Author
dromniscience (you@d.nosp@m.omai.nosp@m.n.com)

Macro Definition Documentation

◆ DEFINE_TIMERS

#define DEFINE_TIMERS
Value:
auto timer = std::chrono::microseconds::zero(); \
auto tick = std::chrono::steady_clock::now(); \
auto tock = std::chrono::steady_clock::now();

◆ START_TIMER

#define START_TIMER   tick = std::chrono::steady_clock::now();

◆ STOP_TIMER

#define STOP_TIMER
Value:
tock = std::chrono::steady_clock::now(); \
timer += std::chrono::duration_cast<std::chrono::microseconds>(tock - tick);

◆ TIMER_RESULT

#define TIMER_RESULT   static_cast<int64_t>(timer.count())