Mixe for Privacy and Anonymity in the Internet
|
#include <CACryptoBenchmark.hpp>
Public Member Functions | |
CACryptoBenchmark () | |
~CACryptoBenchmark () | |
void | doBenchmark () |
Static Private Member Functions | |
static THREAD_RETURN | benchmarkThread (void *param) |
static THREAD_RETURN | timerThread (void *param) |
Static Private Attributes | |
static const UINT32 | ms_NUM_BLOCKSIZES = 5 |
static const UINT32 | ms_BlockSizes [ms_NUM_BLOCKSIZES] = { 16,64,256,512,1024 } |
Definition at line 25 of file CACryptoBenchmark.hpp.
CACryptoBenchmark::CACryptoBenchmark | ( | ) |
Definition at line 39 of file CACryptoBenchmark.cpp.
CACryptoBenchmark::~CACryptoBenchmark | ( | ) |
Definition at line 44 of file CACryptoBenchmark.cpp.
|
staticprivate |
Definition at line 94 of file CACryptoBenchmark.cpp.
References t_benchmarkParams::blocksize, t_benchmarkTimerParams::bTimer, CASymChannelCipher::crypt1(), diff64(), formatBytesPerSecond(), getcurrentTimeMillis(), CAMutex::lock(), t_benchmarkParams::outparam_pTotalBytesProcessed, t_benchmarkParams::pMutexTotalBytesProcessed, CAMsg::printMsg(), CASymChannelCipher::setIVs(), CASymChannelCipher::setKeys(), CAThread::setMainLoop(), CAThread::start(), THREAD_RETURN_SUCCESS, t_benchmarkTimerParams::timerInMillis, timerThread(), and CAMutex::unlock().
Referenced by doBenchmark().
void CACryptoBenchmark::doBenchmark | ( | ) |
Definition at line 48 of file CACryptoBenchmark.cpp.
References benchmarkThread(), t_benchmarkParams::blocksize, diff64(), formatBytesPerSecond(), getcurrentTimeMillis(), MAX_CRYPTOBENCHMARK_THREADS, ms_BlockSizes, ms_NUM_BLOCKSIZES, t_benchmarkParams::outparam_pTotalBytesProcessed, t_benchmarkParams::pMutexTotalBytesProcessed, CAMsg::printMsg(), CAThreadList::put(), CAThread::setMainLoop(), CAThread::start(), and CAThreadList::waitAndRemoveAll().
Referenced by main().
|
staticprivate |
Definition at line 86 of file CACryptoBenchmark.cpp.
References t_benchmarkTimerParams::bTimer, msSleep(), THREAD_RETURN_SUCCESS, and t_benchmarkTimerParams::timerInMillis.
Referenced by benchmarkThread().
|
staticprivate |
Definition at line 34 of file CACryptoBenchmark.hpp.
Referenced by doBenchmark().
|
staticprivate |
Definition at line 33 of file CACryptoBenchmark.hpp.
Referenced by doBenchmark().