---
# System prepended metadata

title: Gas Usage Breakdown - 2022-01-04

---

# Gas Usage Breakdown - 2022-01-04

Below shows the average gas burnt for each item in the NEAR gas profile, plus an "other" category for gas not captured by the profile (which currently includes wasm execution). The average is taken over transactions sent to aurora calling the submit endpoint during a 36 hour period on January 3 - 4, 2022. Only transactions which executed successfully are considered. In particular this means transactions which hit the NEAR gas limit are left out.

Unfortunately, we are unable to provide analysis of the "Other gas" which is WASM related. From what I understand NEAR will provide a breakdown of this in the future. Then we can add it to this parser to ensure it is providing as much data as required to enable paths to enhance the user experience.

A total of 342,749 transactions were used in the "successful" result, and 23,341 max gas exceeded transactions. Other EVM related transaction fails were not included as they don't typically write anything to state.

If there is any more data required that we can possibly help with, please let Joshua J. Bouw (joshua@aurora.dev) know as soon as possible.

Do note that `regular_op_cost` isn't included as it isn't yet released to our knowledge. However, it was found that the `Other gas:` line is roughly that cost.

[NEAR archival RPC]: https://archival-rpc.mainnet.near.org

## Successful Transactions

| Cost                          |       Gas used |      Pct |
| ----------------------------- | --------------:| --------:|
| TOUCHING_TRIE_NODE            | 26204346646368 | 44.5601% |
| Other gas (WASM cost, etc.)   | 15771453428124 | 26.8191% |
| STORAGE_READ_BASE             |  8426725413389 | 14.3295% |
| FUNCTION_CALL                 |  2320068013896 |  3.9452% |
| STORAGE_READ_VALUE_BYTE       |  1128443909499 |  1.9189% |
| WRITE_REGISTER_BYTE           |   768449765220 |  1.3067% |
| STORAGE_WRITE_BASE            |   896757862972 |  1.5249% |
| READ_MEMORY_BASE              |   485290573666 |  0.8252% |
| WRITE_REGISTER_BASE           |   418128870026 |  0.7110% |
| WRITE_MEMORY_BASE             |   347249373249 |  0.5905% |
| READ_REGISTER_BYTE            |   314245053474 |  0.5344% |
| ECRECOVER_BASE                |   279899611236 |  0.4760% |
| CONTRACT_COMPILE_BYTES        |   193671201593 |  0.3293% |
| TRANSFER                      |   115123062500 |  0.1958% |
| BASE                          |   112433583048 |  0.1912% |
| NEW_RECEIPT                   |   111924145378 |  0.1903% |
| STORAGE_REMOVE_BASE           |   108225303649 |  0.1840% |
| STORAGE_HAS_KEY_BASE          |   105216752369 |  0.1789% |
| STORAGE_HAS_KEY_BYTE          |   105216752369 |  0.1789% |
| STORAGE_WRITE_KEY_BYTE        |    35875573017 |  0.0610% |
| UTF8_DECODING_BYTE            |    29802212305 |  0.0507% |
| READ_MEMORY_BYTE              |    25287246754 |  0.0430% |
| KECCAK256_BASE                |    17693071992 |  0.0301% |
| READ_REGISTER_BASE            |    13540894118 |  0.0230% |
| LOG_BASE                      |    10710034812 |  0.0182% |
| UTF8_DECODING_BASE            |     9423554932 |  0.0160% |
| KECCAK256_BYTE                |     9209536915 |  0.0157% |
| STORAGE_REMOVE_KEY_BYTE       |     3921364501 |  0.0067% |
| LOG_BYTE                      |     1347677512 |  0.0023% |
| PROMISE_RETURN                |      560152386 |  0.0010% |
| STORAGE_REMOVE_RET_VALUE_BYTE |      491678207 |  0.0008% |
| CONTRACT_COMPILE_BASE         |       35445963 |  0.0001% |

| Stat              | Value          |
| ----------------- | -------------- |
| Total txs         | 345674         |
| Average gas burnt | 58806799498145 |


### Failed Max Gas Exceeded Transactions

| Cost                          |       Gas used |      Pct |
| ----------------------------- | --------------:| --------:|
| Other gas (WASM cost, etc.)   | 92484097390650 | 45.6369% |
| TOUCHING_TRIE_NODE            | 73898254850719 | 36.4656% |
| STORAGE_READ_BASE             | 22506234461138 | 11.1059% |
| STORAGE_READ_VALUE_BYTE       |  2988450170576 |  1.4747% |
| STORAGE_WRITE_BASE            |  2307037235126 |  1.1384% |
| WRITE_REGISTER_BYTE           |  2027866145425 |  1.0007% |
| READ_MEMORY_BASE              |  1168611503785 |  0.5767% |
| WRITE_REGISTER_BASE           |   935290706875 |  0.4615% |
| WRITE_MEMORY_BASE             |   818898060345 |  0.4041% |
| READ_REGISTER_BYTE            |   737708899900 |  0.3640% |
| ECRECOVER_BASE                |   278821988457 |  0.1376% |
| BASE                          |   273256991050 |  0.1348% |
| STORAGE_REMOVE_BASE           |   249719485989 |  0.1232% |
| CONTRACT_COMPILE_BYTES        |   194494977000 |  0.0960% |
| STORAGE_WRITE_KEY_BYTE        |    92475755115 |  0.0456% |
| READ_MEMORY_BYTE              |    54726196319 |  0.0270% |
| READ_REGISTER_BASE            |    39039811156 |  0.0193% |
| UTF8_DECODING_BYTE            |    27148822303 |  0.0134% |
| KECCAK256_BASE                |    11764214079 |  0.0058% |
| KECCAK256_BYTE                |     8022257485 |  0.0040% |
| STORAGE_REMOVE_KEY_BYTE       |     6140243887 |  0.0030% |
| LOG_BASE                      |     5578379716 |  0.0028% |
| UTF8_DECODING_BASE            |     4899394014 |  0.0024% |
| LOG_BYTE                      |     1228928742 |  0.0006% |
| STORAGE_REMOVE_RET_VALUE_BYTE |      735652566 |  0.0004% |
| CONTRACT_COMPILE_BASE         |       35445963 |  0.0000% |
| FUNCTION_CALL                 |              0 |  0.0000% |
| TRANSFER                      |              0 |  0.0000% |
| NEW_RECEIPT                   |              0 |  0.0000% |
| STORAGE_HAS_KEY_BASE          |              0 |  0.0000% |
| STORAGE_HAS_KEY_BYTE          |              0 |  0.0000% |
| PROMISE_RETURN                |              0 |  0.0000% |

| Stat             | Value           |
| ---------------- | --------------- |
| Average gas burn | 202651953442330 |
| Total txs        | 23601           |
