Add test benchmarking transaction Emufid2pv2UpxrZae4NyowF2N2ZHvYEPq16LsQc7Uoc6 #599
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds a new test reproducing a transaction from testnet. It currently exceeds the 300 Tgas limit. The majority of the gas usage (approx 85%) is in wasm computation, in terms of host functions there is about 8% of the gas usage in bn128 calls, and about 6% in state access (reading, writing, trie touching, etc).
The user says the transaction should be similar to one on Polygon.
Performance / NEAR gas cost considerations
The purpose of this test is to allow us to track our progress as we implement new gas optimizations in the engine. Since most of the computation is in the wasm interpretation, there are no optimizations in the immediate future which will help this case, but there is some promising research.