Fabcoin Core  0.16.2
P2P Digital Currency
Functions | Variables
bench1.cpp File Reference
#include "cryptlib.h"
#include "bench.h"
#include "validate.h"
#include "aes.h"
#include "blumshub.h"
#include "files.h"
#include "filters.h"
#include "hex.h"
#include "modes.h"
#include "factory.h"
#include "smartptr.h"
#include "cpu.h"
#include <time.h>
#include <math.h>
#include <iostream>
#include <sstream>
#include <iomanip>
Include dependency graph for bench1.cpp:

Go to the source code of this file.

Functions

void OutputResultBytes (const char *name, double length, double timeTaken)
 
void OutputResultKeying (double iterations, double timeTaken)
 
void OutputResultOperations (const char *name, const char *operation, bool pc, unsigned long iterations, double timeTaken)
 
void BenchMark (const char *name, StreamTransformation &cipher, double timeTotal)
 
void BenchMark (const char *name, AuthenticatedSymmetricCipher &cipher, double timeTotal)
 
void BenchMark (const char *name, HashTransformation &ht, double timeTotal)
 
void BenchMark (const char *name, BufferedTransformation &bt, double timeTotal)
 
void BenchMarkKeying (SimpleKeyingInterface &c, size_t keyLength, const NameValuePairs &params)
 
template<class T_FactoryOutput , class T_Interface >
void BenchMarkByName2 (const char *factoryName, size_t keyLength=0, const char *displayName=NULL, const NameValuePairs &params=g_nullNameValuePairs)
 
template<class T_FactoryOutput >
void BenchMarkByName (const char *factoryName, size_t keyLength=0, const char *displayName=NULL, const NameValuePairs &params=g_nullNameValuePairs)
 
template<class T >
void BenchMarkByNameKeyLess (const char *factoryName, const char *displayName=NULL, const NameValuePairs &params=g_nullNameValuePairs)
 
void BenchmarkAll (double t, double hertz)
 

Variables

const double CLOCK_TICKS_PER_SECOND = 1000000.0
 
double logtotal = 0.0
 
double g_allocatedTime = 0
 
double g_hertz = 0
 
unsigned int logcount = 0
 

Function Documentation

void BenchMark ( const char *  name,
StreamTransformation cipher,
double  timeTotal 
)

Definition at line 121 of file bench1.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void BenchMark ( const char *  name,
AuthenticatedSymmetricCipher cipher,
double  timeTotal 
)

Definition at line 142 of file bench1.cpp.

Here is the call graph for this function:

void BenchMark ( const char *  name,
HashTransformation ht,
double  timeTotal 
)

Definition at line 150 of file bench1.cpp.

Here is the call graph for this function:

void BenchMark ( const char *  name,
BufferedTransformation bt,
double  timeTotal 
)

Definition at line 171 of file bench1.cpp.

Here is the call graph for this function:

void BenchmarkAll ( double  t,
double  hertz 
)

Definition at line 248 of file bench1.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<class T_FactoryOutput >
void BenchMarkByName ( const char *  factoryName,
size_t  keyLength = 0,
const char *  displayName = NULL,
const NameValuePairs params = g_nullNameValuePairs 
)

Definition at line 230 of file bench1.cpp.

template<class T_FactoryOutput , class T_Interface >
void BenchMarkByName2 ( const char *  factoryName,
size_t  keyLength = 0,
const char *  displayName = NULL,
const NameValuePairs params = g_nullNameValuePairs 
)

Definition at line 210 of file bench1.cpp.

Here is the call graph for this function:

template<class T >
void BenchMarkByNameKeyLess ( const char *  factoryName,
const char *  displayName = NULL,
const NameValuePairs params = g_nullNameValuePairs 
)

Definition at line 237 of file bench1.cpp.

Here is the call graph for this function:

void BenchMarkKeying ( SimpleKeyingInterface c,
size_t  keyLength,
const NameValuePairs params 
)

Definition at line 192 of file bench1.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void OutputResultBytes ( const char *  name,
double  length,
double  timeTaken 
)

Definition at line 45 of file bench1.cpp.

Here is the caller graph for this function:

void OutputResultKeying ( double  iterations,
double  timeTaken 
)

Definition at line 66 of file bench1.cpp.

Here is the caller graph for this function:

void OutputResultOperations ( const char *  name,
const char *  operation,
bool  pc,
unsigned long  iterations,
double  timeTaken 
)

Definition at line 80 of file bench1.cpp.

Here is the caller graph for this function:

Variable Documentation

const double CLOCK_TICKS_PER_SECOND = 1000000.0

Definition at line 36 of file bench1.cpp.

double g_allocatedTime = 0

Definition at line 39 of file bench1.cpp.

double g_hertz = 0

Definition at line 39 of file bench1.cpp.

unsigned int logcount = 0

Definition at line 40 of file bench1.cpp.

double logtotal = 0.0

Definition at line 39 of file bench1.cpp.