-
Notifications
You must be signed in to change notification settings - Fork 634
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
Fix progress reporting in bench cmd #434
Conversation
cc @tjungblu |
cmd/bbolt/main.go
Outdated
} | ||
completed, taken := r.CompletedOps(), t.Sub(lastTime) | ||
fmt.Fprintf(w, "Completed %d requests, %d/s \n", |
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 know if you want to track this with a log file on every line individually, but for the sake of console spam, maybe add a CR?
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.
Sorry @tjungblu . I couldn't understand your comment. The aim of this CR is to enable reporting progress on console while the benchmark is running. Can you elaborate a bit more on 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.
perfect, then why print a line for each instead of using a carriage return to have the progress report in a single line?
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 got it now. Thanks for explaining.
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 (non-binding) and thanks for fixing it (again)
2875d71
to
54484b9
Compare
Output after latest push on this CR:
If you feel like printing progress after write iteration done (during commit phase) is unnecessary, I can make the progress reporting stop earlier. |
Signed-off-by: Cenk Alti <alticen@amazon.com>
@ahrtr Comments addressed. Can you take another look? |
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
Thank you @cenkalti
Fix #428