Improved MO benchmark logic

This commit is contained in:
MoneroOcean 2024-05-27 22:30:27 -07:00
parent 69b5f93a1b
commit a936d10725
3 changed files with 90 additions and 120 deletions

View file

@ -95,7 +95,10 @@ int xmrig::App::exec()
if (m_controller->config()->isShouldSave()) {
m_controller->config()->save();
}
m_controller->config()->benchmark().start();
if (m_controller->config()->isRebenchAlgo()) {
m_controller->config()->benchmark().flush_perf();
}
m_controller->config()->benchmark().start_perf();
} else {
m_controller->start();
}