[Polygon] - Polygon Block Performance

    > \

    > Bounty Question==: 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?

    db_img

    Introduction


    “Ethereum’s Internet of Blockchains,” a multi-chain scaling solution, according to the team at Polygon Network. A blockchain scalability platform, the Polygon Network intends to develop Ethereum-compatible blockchains’ network (infrastructure). Polygon is Ethereum’s top scaling solution, a protocol and a framework for building and connecting Ethereum-compatible blockchain networks. It aggregates scalable solutions on Ethereum, whilst supporting a multi-chain Ethereum ecosystem. The essential component of the Polygon Network is Polygon SDK—a modular, flexible framework supporting development and connecting Secured Chains, viz. Plasma, Optimistic Rollups, zkRollups, Validium, etc. Whereas the Standalone Chains like Polygon POS are designed to access enough flexibility and independence.

    References:

    Methodology


    The following methods are used in this dashboard:

    • At first, lag or lead functions should be used to get the time difference between the blocks. These functions can bring the desired data from the previous and subsequent rows to our desired row. Here, to get the time difference between the blocks, one of these functions was used so that the time of each block is in line with the time of the next block. Then the datediff function was also used to determine the time difference. (In this analysis, the lead pan was used, and for this reason, the result of the datediff function is the time difference between the current block and the next block).

      \

    • Next, to get the average time between blocks in each network, the total time between blocks was divided by the total number of blocks to get the desired value.

      \

    • To obtain the minimum and maximum time between blocks, these numbers were obtained for each network using order by and limit.

      \

    • Finally, the tx_count column was used to obtain the average number of transactions in a block for each network. The total number of transactions was divided by the total number of blocks and the desired value for each network was obtained.

    Results


    Loading...
    Loading...
    • In comparing the average time between blocks in the 5 desired networks, the Polygon network ranks first with an average of 2.24 seconds. This is at least 1.5 times more than the second network, Flow.

      \

    • The lowest average time between blocks is related to the Solana network, which is about 0.66 seconds on average between two blocks. This is something like 30% of the time it occurs on the Polygon network.

    Loading...
    Loading...

    \

    • In terms of minimum recorded times, Flow, Arbitrum and Optimism networks are at the bottom with zero seconds. Of course, in hundredths of a second, these blocks have moved to the next direction, because there are no flipside tables of hundredths of seconds in the time data, these differences were not calculated and measured before, and the results obtained are zero seconds.

      \

    • The minimum recorded time between two blocks in the Polygon network is 2 seconds, which seems a significant number (considering that this is the shortest time between two blocks)

      \

    • But the interesting thing is about Solana. In the Solana network, it seems that there are two consecutive blocks, the second block was registered about 6 seconds earlier than the first block, and for this reason, the difference between them is a negative number.

    Loading...
    Loading...
    • In terms of the maximum time recorded between two blocks, the Polygon network ranks last with 25 seconds. The numbers obtained for the other 4 networks are very interesting. In the Flow network, there has been about ==14.5 hours== between two blocks. This time is ==2100 times== the maximum time that occurred between two blocks in the Polygon network.

      \

    • Among Ethereum layer 2s (evaluated in this analysis), Arbitrum ranks first with the maximum recorded time between two blocks, which is ==about 6 and a half hours==. This amount is ==408 times== more than the Optimism network and ==937 times== more than the Polygon network.

    Loading...
    Loading...

    \

    • In terms of the average number of transactions in one block, the Solana network ranks first with a difference of ==at least 23 times==. (compared to the second rank held by Polygon network). ==More than 1750 transactions== are done on average in each block of this network.

      \

    • In these results, the interesting thing about the Optimism network is that apparently one block is registered for each transaction. For Arbitrum, this number is close to one (==1.16==). But in the Polygon network, as another network of the second layer of Ethereum, this number is ==around 75 transactions==. It seems that the architecture of Arbitrum and Optimism networks are similar to each other and different from what Polygon network has developed. It is not possible to comment on whether this architecture is good or bad.