Monero
Loading...
Searching...
No Matches
performance_tests.h File Reference
#include <iostream>
#include <stdint.h>
#include <boost/chrono.hpp>
#include <boost/regex.hpp>
#include "misc_language.h"
#include "stats.h"
#include "common/perf_timer.h"
#include "common/timings.h"
Include dependency graph for performance_tests.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  performance_timer
struct  Params
class  test_runner< T >

Macros

#define QUOTEME(x)
#define TEST_PERFORMANCE0(filter, params, test_class)
#define TEST_PERFORMANCE1(filter, params, test_class, a0)
#define TEST_PERFORMANCE2(filter, params, test_class, a0, a1)
#define TEST_PERFORMANCE3(filter, params, test_class, a0, a1, a2)
#define TEST_PERFORMANCE4(filter, params, test_class, a0, a1, a2, a3)
#define TEST_PERFORMANCE5(filter, params, test_class, a0, a1, a2, a3, a4)
#define TEST_PERFORMANCE6(filter, params, test_class, a0, a1, a2, a3, a4, a5)

Functions

template<typename T>
void run_test (const std::string &filter, Params &params, const char *test_name)

Macro Definition Documentation

◆ QUOTEME

#define QUOTEME ( x)
Value:
#x

◆ TEST_PERFORMANCE0

#define TEST_PERFORMANCE0 ( filter,
params,
test_class )
Value:
run_test< test_class >(filter, params, QUOTEME(test_class))
#define QUOTEME(x)
Definition chaingen.h:1086
void run_test(const std::string &filter, Params &params, const char *test_name)
Definition performance_tests.h:165

◆ TEST_PERFORMANCE1

#define TEST_PERFORMANCE1 ( filter,
params,
test_class,
a0 )
Value:
run_test< test_class<a0> >(filter, params, QUOTEME(test_class<a0>))

◆ TEST_PERFORMANCE2

#define TEST_PERFORMANCE2 ( filter,
params,
test_class,
a0,
a1 )
Value:
run_test< test_class<a0, a1> >(filter, params, QUOTEME(test_class) "<" QUOTEME(a0) ", " QUOTEME(a1) ">")

◆ TEST_PERFORMANCE3

#define TEST_PERFORMANCE3 ( filter,
params,
test_class,
a0,
a1,
a2 )
Value:
run_test< test_class<a0, a1, a2> >(filter, params, QUOTEME(test_class) "<" QUOTEME(a0) ", " QUOTEME(a1) ", " QUOTEME(a2) ">")

◆ TEST_PERFORMANCE4

#define TEST_PERFORMANCE4 ( filter,
params,
test_class,
a0,
a1,
a2,
a3 )
Value:
run_test< test_class<a0, a1, a2, a3> >(filter, params, QUOTEME(test_class) "<" QUOTEME(a0) ", " QUOTEME(a1) ", " QUOTEME(a2) ", " QUOTEME(a3) ">")

◆ TEST_PERFORMANCE5

#define TEST_PERFORMANCE5 ( filter,
params,
test_class,
a0,
a1,
a2,
a3,
a4 )
Value:
run_test< test_class<a0, a1, a2, a3, a4> >(filter, params, QUOTEME(test_class) "<" QUOTEME(a0) ", " QUOTEME(a1) ", " QUOTEME(a2) ", " QUOTEME(a3) ", " QUOTEME(a4) ">")

◆ TEST_PERFORMANCE6

#define TEST_PERFORMANCE6 ( filter,
params,
test_class,
a0,
a1,
a2,
a3,
a4,
a5 )
Value:
run_test< test_class<a0, a1, a2, a3, a4, a5> >(filter, params, QUOTEME(test_class) "<" QUOTEME(a0) ", " QUOTEME(a1) ", " QUOTEME(a2) ", " QUOTEME(a3) ", " QUOTEME(a4) ", " QUOTEME(a5) ">")

Function Documentation

◆ run_test()

template<typename T>
void run_test ( const std::string & filter,
Params & params,
const char * test_name )