-
Notifications
You must be signed in to change notification settings - Fork 39
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
Make block benchmark #1569
Make block benchmark #1569
Conversation
…agome into feature/block-exec-benchmark
# https://docs.hunter.sh/en/latest/packages/pkg/benchmark.html | ||
hunter_add_package(benchmark) | ||
find_package(benchmark CONFIG REQUIRED) | ||
|
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.
Not used
# https://docs.hunter.sh/en/latest/packages/pkg/benchmark.html | |
hunter_add_package(benchmark) | |
find_package(benchmark CONFIG REQUIRED) |
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 agreed that we would need it anyway in the near future so I'd rather keep it.
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.
Then must update benchmark
in soramitsu-hunter
if (subcommand) { | ||
argc--; | ||
argv++; | ||
} |
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.
Should command
remove first arg too?
@@ -13,7 +13,7 @@ | |||
#include <rapidjson/document.h> | |||
#include <rapidjson/filereadstream.h> | |||
#include <boost/algorithm/string.hpp> | |||
#include <boost/filesystem.hpp> | |||
#include "filesystem/common.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.
Should be moved down
…ier fallback to boost::filesystem if needed
…agome into feature/block-exec-benchmark
Referenced issues
resolves #1393
Description of the Change
Add new kagome command 'benchmark' and subcommand 'block'. It runs the specified range of blocks several times and prints out the execution time, comparing it to the block weight.
Benefits
Measurement of kagome performance.
Possible Drawbacks
None expected.