Bitcoin Forum

Alternate cryptocurrencies => Mining (Altcoins) => Topic started by: ScryptFactorydev on November 11, 2014, 07:47:14 AM



Title: Hash Rate Calculation given the coin difficulty.For SHA256,Scrypt,X11,Neoscrypt
Post by: ScryptFactorydev on November 11, 2014, 07:47:14 AM
I would like to put in one place the related CORRECT calculations for getting a hashrate number given coin difficulty.  Are there other unknowns that are needed?  say the coin algorithm type?  Can the algorithm be determined from the miner communication?


"If you're going for that degree of accuracy, it should be noted that difficulty 1 does in fact not correspond to 2^32 hashes, but to 2^48/65535 (4295032833 instead of 4294967296). – Pieter Wuille Sep 17 '11 at 12:21"

Conceptually: Compute the expected number of hashes required to find each share that is actually found and sum them. Divide by the amount of time to get the hash rate. –  David Schwartz? Sep 18 '13 at 23:24

Calculate HashRate

hashes = shares * share_difficulty * 2**48 / 65535
thus:
megahash_per_second = shares_per_second * share_difficulty * 4295.032833

Which coin algorithms does this above work with?

SHA-256 - Yes
X11 - Yes
X13 - Yes
X15 - Yes

NeoScrypt??  This doesn't work... can someone provide the correct formula?
EDIT:::  looks like the following below may be valid for Scrypt and Neoscrypt.

To calculate the hashrate for Scrypt, use what you would for Bitcoin but do 2^16 instead of 2^32.

H =shares per sec *  D * 2^32/ ( 65535 * 10^6 )

hashes = shares * share_difficulty * 2**32 / ( 65535 * 10^6 ))
thus:
megahash_per_second = shares_per_second * share_difficulty * 4295.032833
megahash_per_second =shares per sec *  D * 2^32/ ( 65535 * 10^6 )
megahash_per_second =shares per sec *  D * 0.065536