Commit Graph

32 Commits

Author SHA1 Message Date
XMRig
ea7275fc28 Added Benchmark class. 2020-10-17 04:03:42 +07:00
XMRig
14892cf040 Removed m_bench field from Job class. 2020-10-16 20:29:11 +07:00
XMRig
4b66ba3e24 Improve some benchmark log messages. 2020-10-16 04:11:50 +07:00
XMRig
ebaf8ccec4 Added CMake option WITH_BENCHMARK. 2020-10-16 02:18:07 +07:00
SChernykh
6078052780 Benchmark: added more check hashes and a progress indicator 2020-10-15 08:23:47 +02:00
SChernykh
04ed885a65 Fixed compile errors in Linux 2020-10-14 21:03:21 +02:00
SChernykh
a046437d5f Added benchmark and stress test
Easy to use and zero configuration embedded benchmark/stress test.
2020-10-14 19:45:05 +02:00
xmrig
e2eb9f896b Merge pull request #1887 from SChernykh/dev
Fixed total hashrate update
2020-10-10 22:07:37 +07:00
SChernykh
1f489ee378 Fixed total hashrate update
Don't add data points where one of the threads doesn't have hashrate data yet.
2020-10-10 17:00:30 +02:00
cohcho
e29ffe7668 CPU: use raw counter 2020-10-10 13:28:14 +00:00
SChernykh
2af99c3d83 More precise hashrate calculation
- Use only steady timestamp counters to guarantee correctness
- CPU backend: directly measure total hashrate using raw hash counters from each thread; update data more often on ARM CPUs because they're slower
- GPU backends: directly measure total hashrate too, but use interpolator with 4 second lag to fix variance from batches of hashes

Total hashrate is now measured directly (realtime for CPU, 4 seconds lag for GPU), so it might differ a bit from the sum of all thread hashrates because data points are taken at different moments in time.

Overhead is reduced a lot since it doesn't have to go through all threads to calculate max total hashrate on every timer tick (2 times a second).
2020-10-10 11:18:01 +02:00
SChernykh
151e1f7d77 Fix possible race condition in hashrate counting code
Use single atomic operation to switch between data points.
2020-10-09 10:29:18 +02:00
SChernykh
4b0f3fab83 RandomX fixes
Intel JCC erratum fix and various other improvements, see more here: https://www.phoronix.com/scan.php?page=article&item=intel-jcc-microcode&num=1
2019-12-01 08:46:35 +01:00
XMRig
666e4238ac #1309 Fixed null pointer dereference. 2019-11-24 00:53:58 +07:00
SChernykh
321a0b882f Optimized hashrate calculation 2019-11-09 17:29:12 +01:00
XMRig
97f9364dc6 Added CudaWorker and CudaLaunchData. 2019-10-26 17:37:54 +07:00
XMRig
c452846a6a #1212 Fixed RandomX dataset re-initialization. 2019-10-02 06:35:49 +07:00
XMRig
d1d0ed7fe2 Allow partially started threads. 2019-09-17 02:22:59 +07:00
XMRig
4223e282d6 Improved thread self test error message. 2019-09-16 01:27:51 +07:00
XMRig
c4b49d4213 OpenCL RandomX WIP 2019-09-11 15:48:02 +07:00
XMRig
897f08183b Restored OclCache. 2019-08-27 06:31:40 +07:00
XMRig
fe5832bfc6 Added OclWorker class. 2019-08-25 03:50:49 +07:00
XMRig
f9bdd6ae93 Merge branch 'dev' into feature-opencl 2019-08-17 23:33:48 +07:00
XMRig
bb10897271 Use unsigned type for intensity. 2019-08-17 05:22:09 +07:00
XMRig
faf18262eb Added generic Argon2 implementation (conflicts with RandomX). 2019-08-16 00:31:29 +07:00
XMRig
dcff5696bf Added OclBackend, OclConfig, OclLaunchData, OclThread and OclThreads stubs. 2019-08-13 19:47:22 +07:00
XMRig
3c5d27ea09 Added maxIntensity method to Algorithm. 2019-08-07 18:51:32 +07:00
XMRig
9ecea49036 Workaround for unsupported intensity option + warning. 2019-07-21 04:35:52 +07:00
XMRig
db971991fb Added support for threads restart if config changed. 2019-07-18 19:11:45 +07:00
XMRig
fb205e8cd3 Restored "CPU READY" message. 2019-07-17 14:54:08 +07:00
XMRig
8afd3f1c76 Restored printable hashrate. 2019-07-17 01:28:42 +07:00
XMRig
fe2ae04f8d Added initial support for new style threads launch method. 2019-07-16 22:10:50 +07:00