Ethereum: How to calculate Hashes per Second
Ethereum: Hash power – a guide to calculating shortcuts per second
In the world of cryptocurrency and blockchain technology, the abbreviation function plays a key role in verifying transaction and maintaining network integrity. One of the most frequently used abbreviation in Ethereum is the KECCAK-256 mixing algorithm, which is currently used to verify transactions and extracting proof of work (JE).
Understanding the abbreviation function
The shortcut function is an algorithm that adopts the input details of any size and produces a constant output, known as an abbreviation. The key features of a good shortcut are:
* deterministic : always produces the same output, taking into account the same entrance.
* Uninformed
: it cannot be reversed to obtain an original input without additional information or calculation resources.
* Constant size : The exit size is determined by solving the problem and the characteristics of the abbreviation function.
Calculation of shortcuts per second (HPS)
To calculate HPS, you need to know the following:
- Number of shortcut functions : There are many abbreviations for Ethereum, including Keccak-256, RipemD-160 and others.
- Network load : The number of nodes in the network and their hash power can affect HPS.
- The quality of the abbreviation function : A good shortcut function should be resistant to attacks, such as collision and preimage attacks.
Calculation of shortcuts per second with difficulties in Ethereum blocks
Block difficulty is a critical parameter that determines the speed of extracting new blocks, including the creation of shortcuts for each transaction. To calculate HPS, we must know the block difficulty, the number of transactions in the block and the total abbreviation output.
Here are examples of calculations:
* Number of transactions per block : 4 (assuming a small network with 10 knots)
* Block difficulty : 1,000,000,000 (current block difficulty for Ethereum)
* Output hash for the transaction : about 128 bytes
Using the following formula to calculate HPS:
HPS = (transactions to the block \* Hash exit to the transaction) / block difficulty
Let’s make mathematics:
HPS osed (4 transactions/block \* 128 bytes/transaction)/1,000,000,000
= 0.32 kp/block
HP estimation in the script of the real world
To give you an idea of how it looks in practice, let’s consider the script in which we have 10 knots on the web, and each node has 100 million coins to mine.
Assuming a block difficulty of 1 billion, with a shortcut output for a transaction of about 128 bytes:
* block size
: about 4 gigabytes
Number of transactions in the block : 400,000 (10 knots \40 million coins)
* Hash output to the block : 512 megabytes
Using the same formula:
HPS osedly (400,000 transactions/block \* 128 bytes/transaction)/1 billion
= around 0.32 kp/block/block
This means that each node in the large Ethereum network can extract about 3-4 shortcuts per second.
Application
The calculation of HPS is necessary to understand the efficiency and scalability of the Ethereum extracting system (POW). Although these calculations are provided by theoretical estimation, it does not take into account various factors, such as the quality of the abbreviation function, block size and network load.
Because the Ethereum ecosystem is constantly developing and maturing, we can expect increased interest in the optimization of driving systems and improving overall performance. Understanding how to calculate HPS, programmers and miners can better optimize their equipment and networks to achieve maximum performance.