Mixes for Privacy and Anonymity in the Internet
|
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 } |
CACryptoBenchmark::CACryptoBenchmark | ( | ) |
CACryptoBenchmark::~CACryptoBenchmark | ( | ) |
|
staticprivate |
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 | ( | ) |
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 |
References t_benchmarkTimerParams::bTimer, msSleep(), THREAD_RETURN_SUCCESS, and t_benchmarkTimerParams::timerInMillis.
Referenced by benchmarkThread().
|
staticprivate |
Referenced by doBenchmark().
|
staticprivate |
Referenced by doBenchmark().