-
Notifications
You must be signed in to change notification settings - Fork 2k
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
extend benchmark to make the db-sync mode and node-profiler configurable #11647
Conversation
This comment was marked as outdated.
This comment was marked as outdated.
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.
running
f230a3f
to
4684702
Compare
tools/run_benchmark.sh
Outdated
@@ -2,13 +2,15 @@ | |||
|
|||
run_benchmark() { | |||
# shellcheck disable=SC2086 | |||
python ./tools/test_full_sync.py run $3 --profile --test-constants "$1" & | |||
python ./tools/test_full_sync.py run $3 --profile --node-profiler --test-constants "$1" & |
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.
it just occurred to me that combining --profile
and --node-profiler
here will cause two cProfile
instances to be active at the same time. Is that supported by python? I don't recall anything stating it isn't..
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.
it does look like they clobber each other. I don't think it's useful to enable both.
tools/run_benchmark.sh
Outdated
@@ -2,13 +2,15 @@ | |||
|
|||
run_benchmark() { | |||
# shellcheck disable=SC2086 | |||
python ./tools/test_full_sync.py run $3 --profile --test-constants "$1" & | |||
python ./tools/test_full_sync.py run $3 --profile --node-profiler --test-constants "$1" & |
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.
Is there any reduced performance from this?
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.
pretty minor impact on wall-time:
without --node-profiler
: 116.05 s
with --node-profiler
: 116.72 s
I removed |
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.
lgtm
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.
aok
example output from the node profiler: