-
Notifications
You must be signed in to change notification settings - Fork 285
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
precompiles: Add evmone-precompiles-bench tool #765
Conversation
Current results
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #765 +/- ##
=======================================
Coverage 97.90% 97.90%
=======================================
Files 110 110
Lines 10536 10536
=======================================
Hits 10315 10315
Misses 221 221
Flags with carried forward coverage won't be shown. Click here to find out more.
|
test/state/precompiles.hpp
Outdated
@@ -43,4 +43,31 @@ bool is_precompile(evmc_revision rev, const evmc::address& addr) noexcept; | |||
|
|||
/// Executes the message to a precompiled contract (msg.code_address must be a precompile). | |||
evmc::Result call_precompile(evmc_revision rev, const evmc_message& msg) noexcept; | |||
|
|||
|
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.
Superfluous newline here.
Consider moving the following declarations to a specialized precompiles_internal.hpp
to not bloat the main API precompiles.hpp
?
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.
Done as suggested.
8d9f703
to
63682c7
Compare
Expose all `xxx_analyze()` and `xxx_execute()` functions from the `evmone::state` library. They are usable for tests and benchmarks. Make `EVMONE_PRECOMPILES_SILKPRE` compile definition available to the `evmone::state`s users.
Add new benchmarking tool `evmone-precompiles-bench` to compare performance of different precompiles implementations.
63682c7
to
d7181e6
Compare
Add new benchmarking tool
evmone-precompiles-bench
to compareperformance of different precompiles implementations.