Monero
Loading...
Searching...
No Matches
benchmark.cpp File Reference
#include <fstream>
#include <iostream>
#include <iomanip>
#include <exception>
#include <string>
#include <vector>
#include <thread>
#include <atomic>
#include "stopwatch.hpp"
#include "utility.hpp"
#include "../randomx.h"
#include "../dataset.hpp"
#include "../blake2/endian.h"
#include "../common.hpp"
#include "../jit_compiler.hpp"
#include "affinity.hpp"
Include dependency graph for benchmark.cpp:

Classes

class  AtomicHash
struct  MemoryException
struct  CacheAllocException
struct  DatasetAllocException

Typedefs

using MineFunc = void(randomx_vm * vm, std::atomic<uint32_t> & atomicNonce, AtomicHash & result, uint32_t noncesCount, int thread, int cpuid)

Functions

void printUsage (const char *executable)
template<bool batch, bool commit>
void mine (randomx_vm *vm, std::atomic< uint32_t > &atomicNonce, AtomicHash &result, uint32_t noncesCount, int thread, int cpuid=-1)
int main (int argc, char **argv)

Variables

const uint8_t blockTemplate_ []

Typedef Documentation

◆ MineFunc

using MineFunc = void(randomx_vm * vm, std::atomic<uint32_t> & atomicNonce, AtomicHash & result, uint32_t noncesCount, int thread, int cpuid)

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

◆ mine()

template<bool batch, bool commit>
void mine ( randomx_vm * vm,
std::atomic< uint32_t > & atomicNonce,
AtomicHash & result,
uint32_t noncesCount,
int thread,
int cpuid = -1 )

◆ printUsage()

void printUsage ( const char * executable)

Variable Documentation

◆ blockTemplate_

const uint8_t blockTemplate_[]
Initial value:
= {
0x07, 0x07, 0xf7, 0xa4, 0xf0, 0xd6, 0x05, 0xb3, 0x03, 0x26, 0x08, 0x16, 0xba, 0x3f, 0x10, 0x90, 0x2e, 0x1a, 0x14,
0x5a, 0xc5, 0xfa, 0xd3, 0xaa, 0x3a, 0xf6, 0xea, 0x44, 0xc1, 0x18, 0x69, 0xdc, 0x4f, 0x85, 0x3f, 0x00, 0x2b, 0x2e,
0xea, 0x00, 0x00, 0x00, 0x00, 0x77, 0xb2, 0x06, 0xa0, 0x2c, 0xa5, 0xb1, 0xd4, 0xce, 0x6b, 0xbf, 0xdf, 0x0a, 0xca,
0xc3, 0x8b, 0xde, 0xd3, 0x4d, 0x2d, 0xcd, 0xee, 0xf9, 0x5c, 0xd2, 0x0c, 0xef, 0xc1, 0x2f, 0x61, 0xd5, 0x61, 0x09
}