Do RX bench testing first to avoid invalid shares later

This commit is contained in:
MoneroOcean 2019-07-22 09:47:27 -07:00
parent 3765f26c08
commit a51ba9d9a5

View file

@ -29,26 +29,26 @@ class Miner;
class Benchmark : public IJobResultListener { class Benchmark : public IJobResultListener {
enum BenchAlgo : int { enum BenchAlgo : int {
RX_0, // "rx/0" RandomX (reference configuration).
RX_WOW, // "rx/wow" RandomWOW (Wownero).
CN_R, // "cn/r" CryptoNightR (Monero's variant 4). CN_R, // "cn/r" CryptoNightR (Monero's variant 4).
CN_GPU, // "cn/gpu" CryptoNight-GPU (Ryo). CN_GPU, // "cn/gpu" CryptoNight-GPU (Ryo).
CN_LITE_1, // "cn-lite/1" CryptoNight-Lite variant 1. CN_LITE_1, // "cn-lite/1" CryptoNight-Lite variant 1.
CN_HEAVY_TUBE, // "cn-heavy/tube" CryptoNight-Heavy (modified, TUBE only). CN_HEAVY_TUBE, // "cn-heavy/tube" CryptoNight-Heavy (modified, TUBE only).
CN_PICO_0, // "cn-pico" CryptoNight Turtle (TRTL) CN_PICO_0, // "cn-pico" CryptoNight Turtle (TRTL)
RX_0, // "rx/0" RandomX (reference configuration).
RX_WOW, // "rx/wow" RandomWOW (Wownero).
MAX, MAX,
MIN = 0, MIN = 0,
INVALID = -1, INVALID = -1,
}; };
const Algorithm::Id ba2a[BenchAlgo::MAX] = { const Algorithm::Id ba2a[BenchAlgo::MAX] = {
Algorithm::RX_0,
Algorithm::RX_WOW,
Algorithm::CN_R, Algorithm::CN_R,
Algorithm::CN_GPU, Algorithm::CN_GPU,
Algorithm::CN_LITE_1, Algorithm::CN_LITE_1,
Algorithm::CN_HEAVY_TUBE, Algorithm::CN_HEAVY_TUBE,
Algorithm::CN_PICO_0, Algorithm::CN_PICO_0,
Algorithm::RX_0,
Algorithm::RX_WOW,
}; };
float m_bench_algo_perf[BenchAlgo::MAX]; float m_bench_algo_perf[BenchAlgo::MAX];