Polygon Block Performance
What is the average time between blocks on Polygon? What was the maximum and minimum recorded time between two blocks? How many transactions are done in a block on average? How do these numbers compare to L1 such as Flow or Solana, or other L2 such as Arbitrum or Optimism?
What is Block in Cryptocurrencies ?
Blocks are data structures within the blockchain database, where transaction data in a cryptocurrency blockchain are permanently recorded. A block records some or all of the most recent transactions not yet validated by the network. Once the data are validated, the block is closed.
What is Polygon?
Polygon, formerly known as the Matic Network, is a scaling solution that aims to provide multiple tools to improve the speed and reduce the cost and complexities of transactions on blockchain networks.
Based on the above data, we can see the minimum number of transactions done in a single Polygon block is 0.
The average number of transactions done in a single Polygon block is 74.8 transactions.
and the maximum number of transactions done in a single Polygon block is 1332 transactions.
Methodology:
For this bounty, I am going to use core.fact_blocks
to analyze the data for different blockchains (mainly Polygon).
Each row in the blocks table represents a single block in the related blockchain.
There is a TX_Count column in the blocks table that indicates the number of transactions within a block.
To calculate the time difference between 2 blocks, I have used lag
command that brings in the previous row for the table and then, calculated the time difference between these 2 rows as block time difference.
In this dashboard, I am going to analyze:
- Minimum, Average, and Maximum Number of Transactions Done Within a Block in Polygon and Compare it to Other L1 and L2 Blockchains.
- Minimum, Average, and Maximum Time Difference Between 2 Block in Polygon and Compare it to Other L1 and L2 Blockchains.
- The difference between Maximum and Average time difference between 2 Blocks in these blockchains (which I consider as an optimal metric for block performance. The Less = The Better)
In terms of comparing number of transactions within a block with other L1 and L2 blockchains:
Minimum:
We can see all blockchains except Optimism have 0 transaction as the minimum number of transactions done within a single Block. this number for Optimism is equal to 1. (left chart)
Average:
Solana has the most average number of transactions made within a single block with more than 1744 transactions. we can see Ethereum on the second rank with more than 142 transactions, Binance Smart Chain is on the 3rd rank with more than 104 transactions and Polygon is on the 4th rank with an average number of 74.8807 transactions. (middle chart)
Maximum:
in terms of maximum number of transactions, we can see Solana blockchain has the most number of transactions done within a single block with 7597 transactions. after that, we have Terra on the second rank with 1756 transactions, Ethereum is on the third rank with 1431 maximum number of transactions made in a block and on the 4th rank, we have Polygon with a low difference and with 1332 transactions made in a single block. (right chart)
In terms of the time difference between 2 blocks in Polygon network, We can see the minimum amount is 2 Seconds.
the average amount is 2.24 seconds which is very close to the minimum amount and sounds really good.
and the maximum time difference between 2 blocks in Polygon is 258 seconds.
In terms of comparing the time difference between 2 blocks, with other L1 and L2 blockchains:
Minimum:
We can see the the minimum time difference between BSC blocks is more than others and is equal to 3 seconds. we have Polygon and Terra with 2 seconds on the second rank. Osmosis and Ethereum has the minimum time difference of 1 second and Flow, Optimism, Avalanche, Solana and Arbitrum have the minimum time difference of 0 (left chart)
Average:
Binance Smart Chain also has the most average time difference between 2 blocks with more than 252 seconds. after that, we have Ethereum with 19 seconds on the second rank. Polygon is on the 5th rank in terms of the average time difference between 2 blocks with 2.24 seconds. (middle chart)
Maximum:
in terms of maximum time between 2 blocks, as we can see, Ethereum is on the first rank with Almost 1.30 million seconds (almost 15 Days !). We can see Polygon is on the last rank in terms of the maximum time difference between 2 blocks with 258 seconds. (right chart).
Conclusion:
- The average number of transactions done in a single Polygon block is 74.8 transactions.
- the minimum number of transactions done in a single Polygon block is 0.
- the maximum number of transactions done in a single Polygon block is 1332 transactions.
- the minimum time difference between 2 blocks in Polygon network is 2 Seconds.
- the average time difference between 2 blocks in Polygon network is 2.24 Seconds.
- the maximum time difference between 2 blocks in Polygon network is 258 Seconds.
- Polygon is on the 3rd rank in terms of average number of transactions done within a block comparing to Ethereum, Binance Smart Chain, Solana, Flow, Avalanche, Optimism, Arbitrum, Osmosis and Terra blockchains.
- Polygon is on the 5th rank in terms of average time difference between 2 blocks comparing to Ethereum, Binance Smart Chain, Solana, Flow, Avalanche, Optimism, Arbitrum, Osmosis and Terra blockchains.
- Polygon has the least difference between the maximum time difference between 2 blocks and the average time difference between 2 blocks, and in my opinion, this indicates the Optimal block performance for Polygon blockchain.
On the left chart, I have analysed the difference between Maximum time difference between 2 blocks and Average time difference between 2 blocks.
In my opinion, the less is this number = the better block performance has that blockchain.
So, we can see Polygon is the most Optimal blockchain in this term and has very low difference between these 2 metrics (only almost 162 seconds)