Avalanche Block and Transaction Performance

    Flipside has Avalanche data! It's now time to start digging into the blockchain's performance at a high level. Avalanche supports quick block finality and high TPS, can we see this in block and transaction performance since 6/20?

    Loading...
    Loading...
    Loading...
    Loading...

    Introduction

    According to the claim made here, Avalanche is a Proof of Stake network that can support up to 4500 transactions per second (4500 TPS). One of the aims of this dashboard is to put this claim to the test, as well as look into other block and transaction performance metrics since 6/20.

    Methodology

    1. Firstly, the average TPS data grouped by the hour was gotten by using the avalanche.core.fact_transactions table to query for the total transactions made per hour, then divide that value by 3600 seconds to get the average transactions per second. The query result was then grouped by the hour and a chart depicting this result will be shown on this dashboard.
    2. Next, the transactions per block data was calculated by querying the avalanche.core.fact_blocks table using MAX(tx_count), MIN(tx_count) and AVG(tx_count) functions to get the maximum, minimum and average transactions count respectively.These transactions per block data will then be shown on this dashboard.
    3. Thirdly, the average time between blocks was gotten by querying the avalanche.core.fact_blocks table using the LAG function to get the previous block's timestamp associated with each block and then using the DATEDIFF function to get the time difference between successive blocks. This data is then grouped by the hour and a chart illustrating this will be shown on this dashboard.
    4. Finally, the average gas price per hour data was gotten by querying the avalanche.core.fact_transactions table using DATE_TRUNC('HOUR', block_timestamp) and AVG(gas_price). A chart illustrating this queried data will be displayed.
    1. The above table shows the average transactions per second grouped by hour, the bar chart below it illustrates the table data.

    2. We can observe from the chart that most of the average TPS (Transactions Per Second) values are below 4 TPS and above 1 TPS.

    3. Two outlier average TPS values can be observed. One above 4 TPS and the one far below 1 TPS. The one above 4 TPS occurred within the 2 AM hourly bar on June 24, 2022, and the one below 1 TPS occurred within the 3 PM hourly bar on the same day.

    4. The first bar of the chart has an average hourly TPS value of 2.629444 TPS and the last bar has an average hourly TPS value of 2.508333 TPS.

    Loading...
    Loading...

    Results

    We can observe the following information from the above table and single number charts:

    1. The maximum transaction count per block is 144 transactions per block
    2. The minimum transaction count per block is 0 transaction per block
    3. The average transaction count per block is 5.57 transactions per block
    db_img
    Loading...
    Loading...

    From the table and line chart above, we can state the following:

    1. Most of the average time values between blocks are about 2 seconds
    2. An outlier average block time value of 10 seconds can be observed between 2 PM to 4 PM on June 24, 2022, which is very similar to what was observed on the bar chart under the Average Hourly Transactions Per Second section.
    Loading...
    Loading...

    From the table and line chart above the following can be observed:

    1. The majority of the average gas price values are below 60 nAVAX.
    2. Four average gas price spikes above 60 nAVAX can be observed on the chart i.e. 64.37165 nAVAX which occurred at 4 PM June 20 2022, 105.2926 nAVAX at 2 AM June 24 2022, 67.83328 nAVAX at 11 AM June 24 2022, and 156.0089 nAVAX at 3 AM, June 25 2022.

    Conclusions

    1. The highest transactions per second observed under the Average Hourly Transactions Per Second section excluding the outlier is 3.7125 TPS, which is far below the 4500 TPS the Avalanche network is claimed to be capable of processing.
    2. The time between blocks is usually consistently around 2 seconds.
    3. One of the times gas prices skyrockets on the Avalanche network is when bots are actively performing transactions. Surprising the average Transactions Per Second and the time between blocks don't seem to be affected negatively by these bot transactions.

    Investigation of Outlier Values

    Loading...

    During the investigation of the cause of the outlier values that occurred at 2 AM, JUN 24, 2022 seen on most charts above, it was discovered that there are discrepancies between the values queried from the tables and the values shown on the Avalanche block explorer. For example, the transaction counts per block shown for block 16436918 on the tables are much higher than the actual transaction counts on the block explorer. The table and screenshot above clearly show this discrepancy. This data error is therefore the reason for the outlier values across most charts during that time range.

    Similarly, the outlier values observed around 3 PM on the same day across most charts above are due to block data missing from the Avalanche tables. So, we should exclude data or information within these two time ranges.

    db_img
    Loading...
    Loading...

    While attempting to find the cause of the 156.0089 gas price value that occurred at 3 AM, June 25 2022 as observed on the line chart under the Average Hourly Transaction Gas Price section, multiple transaction hashes with gas prices of 1000 nVAX and above, with the highest gas price being above 40,000 nVAX associated with transaction hash 0x4f3b1cf377fdcac9a451e93e9e97ffc388d52fe870784e65f438a9f7b4024c07 were observed. The table and the bar chart above illustrate this. Let's proceed to see what all these transaction hashes have in common.

    Loading...
    Loading...

    As we can observe from the above table and chart, the one thing they have in common is multiple transactions. Transaction hashes that are associated with humans tend to usually have just 1 transaction, transaction hashes associated with bots on the other hand tend to have multiple transactions. So, bots probably trying to take advantage of arbitrage opportunities are very likely the cause of the high gas price.