mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-09 08:42:40 -05:00
Do RX bench testing first to avoid invalid shares later
This commit is contained in:
@@ -29,26 +29,26 @@ class Miner;
|
||||
class Benchmark : public IJobResultListener {
|
||||
|
||||
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_GPU, // "cn/gpu" CryptoNight-GPU (Ryo).
|
||||
CN_LITE_1, // "cn-lite/1" CryptoNight-Lite variant 1.
|
||||
CN_HEAVY_TUBE, // "cn-heavy/tube" CryptoNight-Heavy (modified, TUBE only).
|
||||
CN_PICO_0, // "cn-pico" CryptoNight Turtle (TRTL)
|
||||
RX_0, // "rx/0" RandomX (reference configuration).
|
||||
RX_WOW, // "rx/wow" RandomWOW (Wownero).
|
||||
MAX,
|
||||
MIN = 0,
|
||||
INVALID = -1,
|
||||
};
|
||||
|
||||
const Algorithm::Id ba2a[BenchAlgo::MAX] = {
|
||||
Algorithm::RX_0,
|
||||
Algorithm::RX_WOW,
|
||||
Algorithm::CN_R,
|
||||
Algorithm::CN_GPU,
|
||||
Algorithm::CN_LITE_1,
|
||||
Algorithm::CN_HEAVY_TUBE,
|
||||
Algorithm::CN_PICO_0,
|
||||
Algorithm::RX_0,
|
||||
Algorithm::RX_WOW,
|
||||
};
|
||||
|
||||
float m_bench_algo_perf[BenchAlgo::MAX];
|
||||
|
||||
Reference in New Issue
Block a user