Polygon Block Performance

    Introduction

    It's important to note that each block contains a hash of the preceding block in the chain. Because hashes are cryptographically derived from the block data, this connects blocks together (in a chain). Due to the fact that all subsequent hashes would be invalidated if a single block in the blockchain's history were to be altered, this safeguards against fraud.

    BLOCK TIME

    The time it takes to mine a new block is known as block time. The average block time in Ethereum is between 12 and 14 seconds, and it is assessed after each block. Protocol-level constants are used to maintain the network's security when miners increase their computational capacity by increasing the block time. As a result of this comparison, a decrease in difficulty is applied to any blocks whose average block time is longer than the projected average. The block header will become more challenging if the average block time decreases.

    BLOCK SIZE

    Blocks have size limits. Each block has a goal size of 15 million gas but will increase or decrease based on network demand, up to 30 million gas (2x target block size). All block transactions must use less gas than the block limit. This ensures blocks aren't arbitrarily huge. If blocks could be arbitrarily huge, less performant full nodes would lose speed and space to the network.

    Source: link

    Method

    In the current dashboard I tried to by use of ***fact_blocks ***table on polygon Network to calculate the Maximum and minimum recorded time between two block and count the number of transactions on each block in average.

    Then compare it with other networks in L1 & L2 blockchains.

    For this I used lag(BLOCK_TIMESTAMP,1) over( order by BLOCK_TIMESTAMP)’s filter to calculate the lag of period time between two blocks on each blockchains by number of blocks.

    Analysis

    Vis 1 => 4:== Overall View of Block statistics on Polygon Network

    Conclusion

    In this dashboard I compared Polygon block time interval with other layer 1 and layer 2 blockchains and following results achieved:

    In comparable to L1:

    • More than 90% of blocks completed on 2 Second on polygon
    • Solana 80% on 1 Sec, Osmosis 97% on 5 to 10 Sec, Near & Flow 81 and 63% respectively on 1 Sec, Avalanche 74% on 2 Sec and Ethereum 22% on 5 to 10 Second.
    • Maximum block time interval are belongs to Ethereum with nearly 1.3m Sec.

    (This number is too long and I doubt about it, It could be because of miss data on flipside database or other thing that I can’t found it)

    • Minimum block time interval on polygon is 2 Sec otherwise on others are 1 Sec.

    In comparable to L1:

    • More than 90% of blocks completed on 2 Second on polygon
    • Staknet 99% on more than 30 Sec, Optimism 56% on 10 to 15 Sec, Arbitrum 71% on more than 30 Sec.
    • Maximum block time interval are belongs to Starknet with nearly 463k Sec.
    • Minimum block time interval are belongs to Arbitrum with nearly 1 Sec.

    About:

    What is the average time between blocks on Polygon?

    \n

    • 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?
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Polygon compare to L1

    • In this section I tried to compare with L1 networks as below:
    1. Ethereum
    2. Solana
    3. Flow
    4. Avalanche
    5. Near
    6. Osmosis
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...

    Vis 5 & 6:== Distributions of block times

    In this two Graphs we can see that, 90% of transactions on polygon are done in just 2 second with more than 1.7m number in total,

    7.7% of them are done in period time between 2 to 4 seconds.

    Polygon compare to L2

    • In this section I tried to compare with L2 networks as below:
    1. Arbitrum
    2. Optimism
    3. Starknet
    db_img