-
Notifications
You must be signed in to change notification settings - Fork 81
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
vm: add opcode benchmark #1493
vm: add opcode benchmark #1493
Conversation
For future optimizations and price adjustments.
Codecov Report
@@ Coverage Diff @@
## master #1493 +/- ##
==========================================
- Coverage 77.42% 77.41% -0.02%
==========================================
Files 227 227
Lines 17702 17702
==========================================
- Hits 13706 13704 -2
- Misses 3054 3056 +2
Partials 942 942
Continue to review full report at Codecov.
|
My results:
|
|
||
func maxNumber() []byte { | ||
s := ffSlice(32) | ||
s[0] = 0 |
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.
Why not 0x7F
?
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.
I don't remember exactly now, but it can be tuned a bit, true.
For future optimizations and price adjustments.
Not the prettiest piece of code in the world, but it gives some interesting results.