-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simple gas simulations for rollups #284
base: master
Are you sure you want to change the base?
Conversation
|
||
require('./helpers/setup'); | ||
|
||
const Bridge = artifacts.require('RollupBridge'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Next time call it RollupBridge hehe. I know this is not getting merged, but it is a good opportunity to write something and prove I actually reviewed this. 💯
|
||
const rsp = await bridge.submitPeriodWithData(prevPeriodHash, newPeriodHash, block.hex()).should.be.fulfilled; | ||
console.log(rsp.receipt.gasUsed); | ||
// assert.equal(rsp.receipt.gasUsed, 738140); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the number correct here? Why is it commented out?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok I think I see. You just used these to collect data. Disregard.
Looks good. Just 2 comments:
But overall, very nice 👍 P.S.: Real man use matplotlib to plot data |
Also one more thing: you could have probably pushed the data into an array during tests and then use something like plotly and have a plot automatically. Just FYI. |
rosolves #273
steps:
measurement results:
https://docs.google.com/spreadsheets/d/1ywhXffNw3sNzngvblu4hxE6d2ZbSQ_GjN2JFfl3vYFc/edit