Mixe for Privacy and Anonymity in the Internet
CACryptoBenchmark.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#define MAX_CRYPTOBENCHMARK_THREADS 16
4
5
6
struct
t_benchmarkParams
7
{
8
UINT32
blocksize
;
9
UINT32
runtimeInMillis
;
10
volatile
UINT64
*
outparam_pTotalBytesProcessed
;
11
CAMutex
*
pMutexTotalBytesProcessed
;
12
};
13
14
typedef
struct
t_benchmarkParams
tBenchmarkParams
;
15
16
struct
t_benchmarkTimerParams
17
{
18
UINT32
timerInMillis
;
19
volatile
bool
*
bTimer
;
20
};
21
22
typedef
struct
t_benchmarkTimerParams
tBenchmarkTimerParams
;
23
24
25
class
CACryptoBenchmark
26
{
27
public
:
28
CACryptoBenchmark
();
29
~CACryptoBenchmark
();
30
void
doBenchmark
();
31
private
:
32
33
static
const
UINT32
ms_NUM_BLOCKSIZES
= 5;
34
static
const
UINT32
ms_BlockSizes
[
ms_NUM_BLOCKSIZES
];
35
static
THREAD_RETURN
benchmarkThread
(
void
* param);
36
static
THREAD_RETURN
timerThread
(
void
* param);
37
38
};
39
THREAD_RETURN
#define THREAD_RETURN
Definition:
StdAfx.h:540
UINT32
unsigned int UINT32
Definition:
basetypedefs.h:131
CACryptoBenchmark
Definition:
CACryptoBenchmark.hpp:26
CACryptoBenchmark::ms_NUM_BLOCKSIZES
static const UINT32 ms_NUM_BLOCKSIZES
Definition:
CACryptoBenchmark.hpp:33
CACryptoBenchmark::timerThread
static THREAD_RETURN timerThread(void *param)
Definition:
CACryptoBenchmark.cpp:86
CACryptoBenchmark::ms_BlockSizes
static const UINT32 ms_BlockSizes[ms_NUM_BLOCKSIZES]
Definition:
CACryptoBenchmark.hpp:34
CACryptoBenchmark::benchmarkThread
static THREAD_RETURN benchmarkThread(void *param)
Definition:
CACryptoBenchmark.cpp:94
CACryptoBenchmark::~CACryptoBenchmark
~CACryptoBenchmark()
Definition:
CACryptoBenchmark.cpp:44
CACryptoBenchmark::doBenchmark
void doBenchmark()
Definition:
CACryptoBenchmark.cpp:48
CACryptoBenchmark::CACryptoBenchmark
CACryptoBenchmark()
Definition:
CACryptoBenchmark.cpp:39
CAMutex
Definition:
CAMutex.hpp:36
__UINT64__t_
Definition:
basetypedefs.h:143
t_benchmarkParams
Definition:
CACryptoBenchmark.hpp:7
t_benchmarkParams::runtimeInMillis
UINT32 runtimeInMillis
Definition:
CACryptoBenchmark.hpp:9
t_benchmarkParams::outparam_pTotalBytesProcessed
volatile UINT64 * outparam_pTotalBytesProcessed
Definition:
CACryptoBenchmark.hpp:10
t_benchmarkParams::pMutexTotalBytesProcessed
CAMutex * pMutexTotalBytesProcessed
Definition:
CACryptoBenchmark.hpp:11
t_benchmarkParams::blocksize
UINT32 blocksize
Definition:
CACryptoBenchmark.hpp:8
t_benchmarkTimerParams
Definition:
CACryptoBenchmark.hpp:17
t_benchmarkTimerParams::timerInMillis
UINT32 timerInMillis
Definition:
CACryptoBenchmark.hpp:18
t_benchmarkTimerParams::bTimer
volatile bool * bTimer
Definition:
CACryptoBenchmark.hpp:19
Generated on Sat Jul 22 2023 00:20:07 for Mixe for Privacy and Anonymity in the Internet by
1.9.1