Polygon Block Performance

    db_img

    Overview


    In this dashboard, I will answer this question from Flipside Crypto:

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

    Introduction


    What is Matic on Polygon?

    • MATIC is an ERC-20 token, meaning that it's compatible with other Ethereum-based digital currencies.
    • MATIC is used to govern and secure the Polygon network and to pay network transaction fees
    • Polygon uses a modified proof-of-stake consensus mechanism that enables consensus to be achieved with every block. (Achieving consensus using traditional proof-of-stake requires processing many blocks to achieve consensus.) The proof-of-stake method requires network participants to stake—agree to not trade or sell—their MATIC, in exchange for the right to validate Polygon network transactions. Successful validators in the Polygon network are rewarded with MATIC.

    Method


    To solve this question,

    First, I used the polygon.core.fact_blocks table for the average time between two blocks, sorted the rows by date, and calculated the time interval between the two blocks in seconds, then I averaged this interval, if I want to be more clear, with the command lag ( block_timestamp,1) over(order by block_timestamp) I sorted the rows and selected the previous row and with this command datediff(SECOND, block_timestamp_lag, block_timestamp) I got the time interval in seconds. For the number of transactions, I used this table and the polygon.core.fact_transactions table and calculated the number of transactions in each block with the command count(a.tx_hash) over (partition by a.block_number) and took the average. I did the same for other networks

    In addition, I set the time limit of July 15 , 2022 to today for all analyses

    I used these tables in other chains:

    flow.core.fact_transactions flow.core.fact_blocks for Flow

    solana.core.fact_transactions solana.core.fact_blocks for Solana

    optimism.core.fact_transactions optimism.core.fact_blocks for Optimism

    arbitrum.core.fact_transactions arbitrum.core.fact_blocks for Arbitrum

    Chart & Analysis


    > # Polygon

    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    • The graphs above show Polygon's performance from July 15 until today.
    • The average time between each block had no fluctuations.
    • The average time between two blocks was 2.489 seconds in the maximum state on July 16, 2022
    • The average time between two blocks was 2.161 seconds in the minimum state on July 20, 2022
    • The maximum time between two blocks was 10 seconds from June 15 to June 20 for 5 days
    • On July 25, the maximum time was between two blocks
    • The minimum time between two blocks was 2 seconds in all days and there was no deviation
    • Since July 15, an average of 118.6 transactions per block have been completed
    • The average time between each block is 2.34 seconds
    • The maximum time spent between one block and the next block is 18 second

    Chart & Analysis


    > # Flow

    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    • The graphs above show Flow's performance from July 15 until today.
    • Observations show that from July 15th to July 24th, there is no characteristic fluctuation in the time between two blocks, but on July 25th, the time between two blocks is out of the second unit and has reached 1.1 hours.
    • It reached the maximum time on July 26, and the time between two blocks reached 4.7 hours
    • This issue caused the average to rise on July 26, and the average time recorded between two blocks of this chain reached 158.34 seconds on this day.
    • The minimum time recorded between two blocks in this chain is not always in seconds and is recorded as 0 seconds
    • The average time between two blocks was 158.34 seconds in the maximum state on July 26, 2022
    • The average time between two blocks was 1.38 seconds in the minimum state on July 24, 2022
    • Since July 15, an average of 17.21 transactions per block have been completed
    • The average time between each block is 1.533 seconds
    • The maximum time spent between one block and the next block is 17.06k seconds, which is equal to 4.7 hours

    Chart & Analysis


    > # Solana

    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    • The graphs above show Solana's performance from July 15 until today.
    • The average time between each block fluctuated a little.
    • The average time between two blocks was 0.799 seconds in the maximum state on July 18 , 2022
    • The average time between two blocks was 0.604 seconds in the minimum state on July 22 , 2022
    • The minimum time recorded between two blocks in this chain is not always in seconds and is recorded as 0 seconds
    • The maximum time between two blocks was 9-15 seconds from June 15 to June 24 for 9 days
    • ==On July 25, the maximum time was between two blocks like the polygon chain==
    • Since July 15, an average of 435 transactions per block have been completed
    • The average time between each block is 0.709 seconds
    • The maximum time spent between one block and the next block is 84 seconds, which is equal to 1.4 minute

    Chart & Analysis


    > # Optimism

    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    • The graphs above show Optimism's performance from July 15 until today.

    • The average time between each block fluctuated .

    • The average time between two blocks was 1.003 seconds in the maximum state on July 16, 2022

    • The average time between two blocks was 0.664 seconds in the minimum state on July 20, 2022

    • The maximum time between two blocks It has always been fluctuating and had the same value only on July 25 and 26

    • It is interesting to know that in this chain only 1 transaction has been recorded in each block

    • On July 22, the maximum time was between two blocks

    • The average time between each block is 0.758 seconds

    • The minimum time recorded between two blocks in this chain is not always in seconds and is recorded as 0 seconds

    • The maximum time spent between one block and the next block is 41 seconds,

      \

    Chart & Analysis


    > # Arbitrum 

    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    Loading...
    • The average time between two blocks was 216 seconds in the maximum state on July 19, 2022
    • The average time between two blocks was 161 seconds in the minimum state on July 22, 2022
    • The maximum time between two blocks always fluctuated and only on July 25 and 24 it had almost the same value.
    • The average time between each block is 1.035 seconds
    • On July 19, the maximum time was between two blocks
    • Since July 15, an average of 2.19 transactions per block have been completed
    • The minimum time recorded between two blocks in this chain is not always in seconds and is recorded as 0 seconds
    • The maximum time spent between one block and the next block is 216 seconds,

    Chart & Analysis


    > # General comparison

    Loading...
    Loading...
    Loading...
    • Among all the chains, only Polygon has recorded the time between two blocks in seconds, the minimum time is 2 seconds, and 0 is recorded in the rest of the chains.

    • In comparison, the maximum time recorded between the two blocks, Flow has taken the most time with 4.7 hours

    • Only Polygon and Optimism had less than 1 minute between two blocks

    • Comparing the average time recorded between two blocks, Polygon has the longest time

      \

    Loading...
    Loading...
    • Comparing the maximum daily time between all chains, it seems that layer 1s have increased the time between flow blocks on July 25, and the time between layer 1 blocks has also increased compared to the previous days.
    • But there is no special similarity in layer 2
    • Solana chain has the highest number of transactions per block
    • After that Polygon chain
    • then flow
    • Then the 2nd layer chains such as Arbitrum and Optimism

    Conclusion


    1. average time between blocks
      • Polygon = 2.34 seconds
      • Flow = 1.53 seconds
      • Arbitrum = 1.03 seconds
      • Optimism = 0.75 seconds
      • Solana = 0.7 seconds
    2. maximum and minimum recorded time between two blocks
    • maximum = Flow (4.7 hour) > Arbitrum (3.6 minute) > Solana (1.4 minute) > Optimism (41 second) > Polygon (18 second)
    • minimum = Polygon (2 second) >Arbitrum (0 second) = Solana (0 second) = Optimism (0 second) = Flow (0 second)
    1. How many transactions are done in a block on average?
      • Solana (435.23 transaction) > Polygon (118.59 transaction) > Flow (17.2 transaction) > Arbitrum (2.19 transaction) > Optimism (1 transaction)
    • It seems that the maximum time between two blocks in layer 1 are slightly related to each other, and as one increases, the other also increases slightly.
    • This relationship is not seen in layer 2
    • In layer 1, there are more transactions in each block than in layer 2

    Contact data


    -> the writer : sajjadsmoke -> discord : sajjadsmoke#5567


    Thanks for reading !