-
Notifications
You must be signed in to change notification settings - Fork 69
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
[5.0] Benchmark BLS host functions #1884
Merged
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c2951f3
plumbing a webassembly::interface object for benchmarking BLS host fu…
linh2931 be7dcc0
benchmark bls_g1_add, bls_g2_add, bls_g1_mul, bls_g2_mul
linh2931 6f3b7de
support benchmarked function specific limit of number of runs
linh2931 b2e214d
benchmark bls_pairing, bls_g1_exp, bls_g2_exp
linh2931 63b90eb
benchmark bls_g1_map, bls_g2_map, and bls_fp_mod
linh2931 181d242
print number of runs right aligned since now the numbers can be diffe…
linh2931 4b65a4f
use a single eosio::benchmark for BLS while still being a friend of e…
linh2931 ec1e594
remove little used control as a member of interface_in_benchmark, use…
linh2931 a53e6fc
set max block and transaction cpu to 999'999'999 such that expensive …
linh2931 f54724f
revert benchmarked function specific limit of number of runs changes,…
linh2931 a96d6de
improve and add more comments
linh2931 f0ae929
Merge branch 'release/5.0' into bls_host_funcs_benchmark
linh2931 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
file(GLOB BENCHMARK "*.cpp") | ||
add_executable( benchmark ${BENCHMARK} ) | ||
|
||
target_link_libraries( benchmark fc Boost::program_options bn256) | ||
target_link_libraries( benchmark eosio_testing fc Boost::program_options bn256) | ||
target_include_directories( benchmark PUBLIC | ||
"${CMAKE_CURRENT_SOURCE_DIR}" | ||
"${CMAKE_CURRENT_BINARY_DIR}/../unittests/include" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
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.
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.
We don't need to fix this now (or even when merging to main) but we should try to avoid these sort of declarations. We probably want a target similar to
eosio_testing_contracts
,leap/libraries/testing/CMakeLists.txt
Lines 39 to 41 in 581cd2b
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.
Thanks @spoonincode. I was doing the cleos set code issue yesterday and not getting around with this. As the PR has already merged into 5.0, for cleaner tracking, I will merge the PR to main as is, and use your suggested way later.