diff --git a/src/backend/common/Benchmark.cpp b/src/backend/common/Benchmark.cpp index 4e9b696b..72e8ee9b 100644 --- a/src/backend/common/Benchmark.cpp +++ b/src/backend/common/Benchmark.cpp @@ -39,6 +39,9 @@ namespace xmrig { static const std::map > hashCheck = { { Algorithm::RX_0, { +# ifndef NDEBUG + { 10000U, 0x4A597463865ACF0EULL }, +# endif { 250000U, 0x7D6054757BB08A63ULL }, { 500000U, 0x96607546DE1F5ECCULL }, { 1000000U, 0x898B6E0431C28A6BULL }, @@ -53,6 +56,9 @@ static const std::map > hashCheck = { { 10000000U, 0xB5231262E2792B26ULL } }}, { Algorithm::RX_WOW, { +# ifndef NDEBUG + { 10000U, 0x6B0918757100B338ULL }, +# endif { 250000U, 0xC7F712C9603E2603ULL }, { 500000U, 0x21A0E5AAE6DA7D8DULL }, { 1000000U, 0x0F3E5400B39EA96AULL }, @@ -71,6 +77,9 @@ static const std::map > hashCheck = { static const std::map > hashCheck1T = { { Algorithm::RX_0, { +# ifndef NDEBUG + { 10000U, 0xADFC3A66F79BFE7FULL }, +# endif { 250000U, 0x90A15B799486F3EBULL }, { 500000U, 0xAA83118FEE570F9AULL }, { 1000000U, 0x3DF47B0A427C93D9ULL }, @@ -85,6 +94,9 @@ static const std::map > hashCheck1T = { { 10000000U, 0x95E6BAE68DD779CDULL } }}, { Algorithm::RX_WOW, { +# ifndef NDEBUG + { 10000U, 0x9EC1B9B8C8C7F082ULL }, +# endif { 250000U, 0x7B409F096C863207ULL }, { 500000U, 0x70B7B80D15654216ULL }, { 1000000U, 0x31301CC550306A59ULL }, diff --git a/src/base/net/stratum/benchmark/BenchConfig.cpp b/src/base/net/stratum/benchmark/BenchConfig.cpp index 8a524108..2e02755a 100644 --- a/src/base/net/stratum/benchmark/BenchConfig.cpp +++ b/src/base/net/stratum/benchmark/BenchConfig.cpp @@ -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; } +# ifndef NDEBUG + return size >= 10000 ? size : 0; +# else return 0; +# endif }