mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 21:17:52 +00:00
Unlock benchmark size for debug builds.
This commit is contained in:
parent
926871cbe1
commit
be8245fc92
2 changed files with 16 additions and 0 deletions
|
@ -39,6 +39,9 @@ namespace xmrig {
|
||||||
|
|
||||||
static const std::map<int, std::map<uint32_t, uint64_t> > hashCheck = {
|
static const std::map<int, std::map<uint32_t, uint64_t> > hashCheck = {
|
||||||
{ Algorithm::RX_0, {
|
{ Algorithm::RX_0, {
|
||||||
|
# ifndef NDEBUG
|
||||||
|
{ 10000U, 0x4A597463865ACF0EULL },
|
||||||
|
# endif
|
||||||
{ 250000U, 0x7D6054757BB08A63ULL },
|
{ 250000U, 0x7D6054757BB08A63ULL },
|
||||||
{ 500000U, 0x96607546DE1F5ECCULL },
|
{ 500000U, 0x96607546DE1F5ECCULL },
|
||||||
{ 1000000U, 0x898B6E0431C28A6BULL },
|
{ 1000000U, 0x898B6E0431C28A6BULL },
|
||||||
|
@ -53,6 +56,9 @@ static const std::map<int, std::map<uint32_t, uint64_t> > hashCheck = {
|
||||||
{ 10000000U, 0xB5231262E2792B26ULL }
|
{ 10000000U, 0xB5231262E2792B26ULL }
|
||||||
}},
|
}},
|
||||||
{ Algorithm::RX_WOW, {
|
{ Algorithm::RX_WOW, {
|
||||||
|
# ifndef NDEBUG
|
||||||
|
{ 10000U, 0x6B0918757100B338ULL },
|
||||||
|
# endif
|
||||||
{ 250000U, 0xC7F712C9603E2603ULL },
|
{ 250000U, 0xC7F712C9603E2603ULL },
|
||||||
{ 500000U, 0x21A0E5AAE6DA7D8DULL },
|
{ 500000U, 0x21A0E5AAE6DA7D8DULL },
|
||||||
{ 1000000U, 0x0F3E5400B39EA96AULL },
|
{ 1000000U, 0x0F3E5400B39EA96AULL },
|
||||||
|
@ -71,6 +77,9 @@ static const std::map<int, std::map<uint32_t, uint64_t> > hashCheck = {
|
||||||
|
|
||||||
static const std::map<int, std::map<uint32_t, uint64_t> > hashCheck1T = {
|
static const std::map<int, std::map<uint32_t, uint64_t> > hashCheck1T = {
|
||||||
{ Algorithm::RX_0, {
|
{ Algorithm::RX_0, {
|
||||||
|
# ifndef NDEBUG
|
||||||
|
{ 10000U, 0xADFC3A66F79BFE7FULL },
|
||||||
|
# endif
|
||||||
{ 250000U, 0x90A15B799486F3EBULL },
|
{ 250000U, 0x90A15B799486F3EBULL },
|
||||||
{ 500000U, 0xAA83118FEE570F9AULL },
|
{ 500000U, 0xAA83118FEE570F9AULL },
|
||||||
{ 1000000U, 0x3DF47B0A427C93D9ULL },
|
{ 1000000U, 0x3DF47B0A427C93D9ULL },
|
||||||
|
@ -85,6 +94,9 @@ static const std::map<int, std::map<uint32_t, uint64_t> > hashCheck1T = {
|
||||||
{ 10000000U, 0x95E6BAE68DD779CDULL }
|
{ 10000000U, 0x95E6BAE68DD779CDULL }
|
||||||
}},
|
}},
|
||||||
{ Algorithm::RX_WOW, {
|
{ Algorithm::RX_WOW, {
|
||||||
|
# ifndef NDEBUG
|
||||||
|
{ 10000U, 0x9EC1B9B8C8C7F082ULL },
|
||||||
|
# endif
|
||||||
{ 250000U, 0x7B409F096C863207ULL },
|
{ 250000U, 0x7B409F096C863207ULL },
|
||||||
{ 500000U, 0x70B7B80D15654216ULL },
|
{ 500000U, 0x70B7B80D15654216ULL },
|
||||||
{ 1000000U, 0x31301CC550306A59ULL },
|
{ 1000000U, 0x31301CC550306A59ULL },
|
||||||
|
|
|
@ -137,5 +137,9 @@ uint32_t xmrig::BenchConfig::getSize(const char *benchmark)
|
||||||
return strcasecmp(benchmark, fmt::format("{}K", size).c_str()) == 0 ? size * 1000 : 0;
|
return strcasecmp(benchmark, fmt::format("{}K", size).c_str()) == 0 ? size * 1000 : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# ifndef NDEBUG
|
||||||
|
return size >= 10000 ? size : 0;
|
||||||
|
# else
|
||||||
return 0;
|
return 0;
|
||||||
|
# endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue