Bitcoin Forum
May 24, 2024, 06:48:35 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: How much operations take SHA-2 ?  (Read 828 times)
Frodek (OP)
Member
**
Offline Offline

Activity: 138
Merit: 25


View Profile
July 20, 2014, 02:55:36 PM
 #1

Traditionally is conversion factor 12700 flops per hash/s. In Talk:FLOPS :
Quote
bitcoinwatch.com calculates PFLOPS of bitcoin network as: take number of Hashes/second (Terahashes/s of SHA256) and multiply by 12700 to get a "Single-precision FLOPS estimate". One hash calculation is considered as 6350 32-bit integer operations, and each integer operation is considered equal to two single-precision flops. Source of constants is: http://forum.bitcoin.org/index.php?topic=4689.0  (with reference to bincoinwatch's admin). Actual bitcoin mining contains no (or almost no) floating-point calculations.
But I wonder: one 32 bit integer operation is counts as two floating point operations?  While one floating point operation take longer tome than one integer operation.
Second question: How compute 6350 operations while SHA of long data take long time and SHA of short data take short time? How long data must be digest compute?
Frodek (OP)
Member
**
Offline Offline

Activity: 138
Merit: 25


View Profile
July 22, 2014, 07:46:51 AM
 #2

Where can I find source of SHA implementation on CPU?
shorena
Copper Member
Legendary
*
Offline Offline

Activity: 1498
Merit: 1520


No I dont escrow anymore.


View Profile WWW
July 22, 2014, 10:57:06 AM
 #3

Wikipedia has pseudocode for sha256, rosettacode has several implementations and your favorite programming language has probably a libary for it.

 rosettacode.org/wiki/SHA-256

Im not really here, its just your imagination.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!