Skip to content

Commit 4c1930d

Browse files
committed
rabit
rabit
1 parent 2d7ee84 commit 4c1930d

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

gas-reports/report.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ Both tests follow the same measurement pattern:
128128
A Python script was developed to automate the comparison (found in scripts/compare_gas.py):
129129
```python
130130
# Extract gas values from both reports
131-
gas_proposing = 609,813 # From test_inbox_measure_gas_used.txt
131+
gas_proposing = 654,502 # From test_inbox_measure_gas_used.txt
132132
gas_publication = 44,689 # From minimal_inbox_publish.txt
133133

134134
# Calculate percentage decrease
@@ -137,8 +137,12 @@ percentage_decrease = ((gas_proposing - gas_publication) / gas_proposing) * 100
137137

138138
## Limitations
139139

140-
- Currently this is only measuring the difference based on imitating the test case. These conditions are extremely basic and are not indicative of real world scenarios (for example the blob/calldata is given in the test is extremely small compared to that of a real rollup etc..)
141-
- The comparison is not very accurate as taikos current inbox accepts the list of txs as calldata (which will be measured by the gas snapshot) whereas the minimal rollup implementation relies on this information being given as a blob (which is not captured by the gas snapshot). In reality you would need to consider the implication of submitting a blob transaction in addition to the gas consumption of the publish.
142-
-
140+
- Currently this is only measuring the difference based on imitating the test case. These conditions are quite basic and are not indicative of real-world scenarios (for example the blob/calldata given in the test is minimal compared to that of a real rollup etc.)
141+
- The comparison is not very accurate as taikos current inbox accepts the list of txs as calldata (which will be measured by the gas snapshot) whereas the minimal rollup implementation relies on this information being given as a blob (which is not captured by the gas snapshot). In reality you would need to consider the implication of submitting a blob transaction in addition to the gas consumption of the publish.
142+
143+
## Conclusion
144+
145+
- This preliminary analysis shows a significant 93.17% gas reduction when using the minimal rollup's `publish` function compared to Taiko's `proposeBatch`. However, these results should be interpreted with caution given the simplified test conditions and different data handling approaches (calldata vs blob transactions). More comprehensive testing on realistic scenarios will be conducted once the minimal rollup infrastructure is deployed to a testnet.
146+
143147
## Future Considerations
144148
- Once the minimal rollup infra can be deployed to a testnet we can re-run these simulations on more realistic rollup test cases to analyse the gas differences in depth.

scripts/compare_gas.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ def main():
4646
print(f"Absolute difference: {abs_diff:,}")
4747
print(f"Percentage decrease: {percent_decrease:.2f}%")
4848
print()
49-
49+
5050
if percent_decrease > 0:
51-
print(f"taiko_inbox_publish uses {percent_decrease:.2f}% LESS gas than inbox_without_provermarket")
51+
print(f"minimal_rollup_inbox_publish uses {percent_decrease:.2f}% LESS gas than alethia_inbox_propose")
5252
elif percent_decrease < 0:
53-
print(f"taiko_inbox_publish uses {abs(percent_decrease):.2f}% MORE gas than inbox_without_provermarket")
53+
print(f"minimal_rollup_inbox_publish uses {abs(percent_decrease):.2f}% MORE gas than alethia_inbox_propose")
5454
else:
5555
print("Both methods use the same amount of gas")
5656

0 commit comments

Comments
 (0)