I'm curious how many hashes per sec my cpu is able to perform, is there some way to check this?
2 Answers
Most CPUs will do a few megahash per second, which is completely worthless for anything other than testing and has been for several years now. It may be possible to improve performance in the future as Skylake Intel x86 processors include specific instructions for SHA256, but only by a few percent. Even with improvements it is a waste of time and power attempting to use anything but the most efficient dedicated hardware. A large portion of ASIC miners are effectively obsolete due to their power requirements outstripping their output, and they are orders of magnitude more efficient than mining on a CPU.
-
1This is not technically true. You can still enable the internal miners using the
-gen
option, and using thesetgenerate
RPC. It is non-optimized and slow though, even for a CPU miner. Commented Aug 12, 2015 at 8:40 -
@PieterWuille My mistake, I conflated the removal of
getWork
with removal of the miner entirely. Runningbitcoin-cli setgenerate true
does seem crashbitcoind
though, wish I hadn't learned that in production.– ClarisCommented Aug 12, 2015 at 14:07 -
1Please report that as a bug. As long as the feature exists, it should work. Commented Aug 12, 2015 at 14:09
Yes Erik, the mining feature is still built-in and you can check how many hashes your CPU can perform. Although it's pointless and you cannot earn anything, it is still a fun experiment that people like to try. If you have a bitcoin core installed and synced with the network, you can just simply open the command console
and type in and enter:
setgenerate true
This will initiate your CPU and will start mining. You can then get your hashrate by typing in
getmininginfo
Your hashrate will be shown in integer format and you should see a number like 1-3 million hashes per second. To turn off the mining, because you will just be wasting energy type in
setgenerate false
-
so I'm using osx and those commands are not available by default.– erikvoldCommented Oct 2, 2015 at 20:28
-
-
This answer is really old and outdated.
setgenerate
was removed in version 0.13 because mining with bitcoin core on mainnet is useless and has been for a number of years. bitcoin.stackexchange.com/a/70696/26873 Commented Dec 11, 2020 at 6:16