Benchmark refactoring, zero delay submit and unified HTTP layer.
This commit is contained in:
parent
be8245fc92
commit
c1d99bfa09
21 changed files with 558 additions and 380 deletions
|
@ -53,6 +53,11 @@
|
|||
#endif
|
||||
|
||||
|
||||
#ifdef XMRIG_FEATURE_BENCHMARK
|
||||
# include "backend/common/benchmark/BenchState.h"
|
||||
#endif
|
||||
|
||||
|
||||
namespace xmrig {
|
||||
|
||||
static constexpr uint32_t kReserveCount = 32768;
|
||||
|
@ -245,8 +250,7 @@ void xmrig::CpuWorker<N>::start()
|
|||
|
||||
// Stop benchmark when all hashes have been counted
|
||||
if (done) {
|
||||
m_benchDoneTime = Chrono::steadyMSecs();
|
||||
return;
|
||||
return BenchState::done(m_benchData, Chrono::steadyMSecs());;
|
||||
}
|
||||
|
||||
// Make each hash dependent on the previous one in single thread benchmark to prevent cheating with multiple threads
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue