Polygon Block Performance
we will analyze Polygon Block Performance in this dashboard and compare it to Optimism, which is a L2 network just like Polygon.
for every metric that we analyze, we will show data for both Polygon and Optimism.
also we have filtered our data to start from January 2022. but there is some missing data for Polygon and also for Optimism but we will compare common days for both of them.
so lets look at data and then analyze further data.
above charts shows maximum and minimum recorded time between two blocks for both Polygon and Optimism.
here is what we have done to find this data:
we need all duration time between all blocks which means if you have 4 blocks for example, we should find duration from block 1 to block 2 and then from block 2 to 3 and finally from 3 to 4.
so we have left joined fact_blocks
table to itself with condition of first block number with previous block number. by this now we have a new table of a block and it’s next one. so then we can easily find our answers.
for Polygon Maximum recorded time between two blocks is 25 seconds while for Optimism is 58 seconds.
and minimum recorded time between two blocks for Polygon is 2 seconds while for Optimism is 0.
all number on these charts are base on seconds
Above two numbers are average time recorded between two blocks all time.
for Polygon average all time recorded between two blocks is 2.239 seconds while this number for Optimism is 0.934 second.
so can we say that Optimism is faster? the answer is no because in the next parts we will see that Optimism generates 1 block for each transaction and so we can say that Polygon is faster than Optimism because its blocks contains more than 1 transaction.
this numbers means that, since there is only a transaction in a block, a transaction in Optimism will happened about 0.934 second while a lot of transactions in Polygon will done in 2.239 seconds as an average. this shows and tells that Polygon will perform more transactions in less time and it makes it faster than Optimism.
two number above shows average number of transactions in a block for both Polygon and Optimism.
as said, average number of transactions in a block for Optimism is 1 transaction but for average in a Polygon block there is about 74.8 transactions.
this metrics approves that Polygon is really faster and have more transactions in a block in compare to Optimism.
there is a field named TX_COUNT for transaction counts in each block and we used for find average transaction count all time from January 2022.
above chart compares average transactions in a block for both Polygon and Optimism per day since Jan 2022.
as said before in every block for Optimism there is just one transaction and it is fixed, but for Polygon it is different for every day.
highest average transaction numbers happened on Jun 13th. and as an average there was about 95.3 transactions per block. while this number is fixed for Optimism and is 1 transaction per block.
this number is different for all days but it never come below 50 transactions per count.
and finally above chart compares average block time per day for Polygon and Optimism.
as we see average block time per day for Optimism is less than Polygon and it’s almost below 1 second and it is because that we have a transaction in a block.
so it means more transactions are done in a block and so we can say that Polygon is faster and has more transactions done in a block in under 2.5 seconds as an average.
result
Polygon Maximum recorded time between two blocks is 25 seconds while for Optimism is 58 seconds. and minimum recorded time between two blocks for Polygon is 2 seconds while for Optimism is 0.
Polygon average all time recorded between two blocks is 2.239 seconds while this number for Optimism is 0.934 second.
average number of transactions in a block for Optimism is 1 transaction but for average in a Polygon block there is about 74.8 transactions.