Added new algo bench

This commit is contained in:
MoneroOcean 2019-08-18 15:15:25 -07:00
parent 38d9637fbc
commit 2112c75ad1
2 changed files with 6 additions and 0 deletions

View file

@ -126,6 +126,8 @@ float Benchmark::get_algo_perf(Algorithm::Id algo) const {
case Algorithm::RX_LOKI: return m_bench_algo_perf[BenchAlgo::RX_LOKI];
case Algorithm::RX_WOW: return m_bench_algo_perf[BenchAlgo::RX_WOW];
case Algorithm::DEFYX: return m_bench_algo_perf[BenchAlgo::DEFYX];
case Algorithm::AR2_CHUKWA: return m_bench_algo_perf[BenchAlgo::AR2_CHUKWA];
case Algorithm::AR2_WRKZ: return m_bench_algo_perf[BenchAlgo::AR2_WRKZ];
default: return 0.0f;
}
}

View file

@ -30,6 +30,8 @@ class Job;
class Benchmark : public IJobResultListener {
enum BenchAlgo : int {
AR2_CHUKWA, // "argon2/chukwa"
AR2_WRKZ, // "argon2/wrkz"
RX_LOKI, // "rx/loki" RandomXL (Loki).
RX_WOW, // "rx/wow" RandomWOW (Wownero).
DEFYX, // "defyx DefyX.
@ -44,6 +46,8 @@ class Benchmark : public IJobResultListener {
};
const Algorithm::Id ba2a[BenchAlgo::MAX] = {
Algorithm::AR2_CHUKWA,
Algorithm::AR2_WRKZ,
Algorithm::RX_LOKI,
Algorithm::RX_WOW,
Algorithm::DEFYX,