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.
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
[Benchmark] this pr adds more pocs to benchmark #3512
[Benchmark] this pr adds more pocs to benchmark #3512
Changes from 1 commit
3c83b69
f09922b
df45620
6514458
cbc6f6e
d3114ab
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
The same comment is relevant for the rest of benchmarks. We may safely skip all opcodes like RET or opcodes that clean VM after execution, it's not related to the benchmark itself.
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.
RET is not part of the script? I converted them from script in neo's website.....
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.
But in these benchmarks, we are talking about execution time of seconds or milliseconds,,, should be fine with a RET here.
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.
BTW, why do we need DROP and JMP for this benchmark? We run this script once, we don't run it in cycle. I consider we need to keep GetScriptContainer call only.
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.
@AnnaShaleva Oh, i see how you see these opcodes, these are benchmarks that were supposed to DOS the system, so you can see there is actually a dead loop here..... It will keep going until exaust your GAS fee. In my benchmark i set them to One GAS. What we really want to know is how long these POC can dos the system with one GAS.
These are not just benchmark for simple opcodes, but also triggers the internal reference counter management mechanisms.... so please consider them as POC benchmark, instead of opcode benchmark.