Skip to content
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

cmd/livepeer_bench: add option to repeat benchmark #2114

Merged
merged 2 commits into from
Nov 24, 2021
Merged

Conversation

jailuthra
Copy link
Contributor

What does this pull request do? Explain your changes. (required)

Add option to repeat the benchmark process for more than 1 times. This is helpful to reproduce if we want to monitor VRAM usage when closing and re-opening GPU sessions.

Specific updates (required)

See commit history

How did you test each of these updates (required)

Manually tested that setting -repeat <N> leads to the benchmark process running #N times.

Does this pull request close any open issues?

Checklist:

jailuthra added a commit that referenced this pull request Nov 22, 2021
@jailuthra jailuthra requested review from oscar-davids and yondonfu and removed request for oscar-davids November 22, 2021 15:50
}
if ffmpeg.Software != accel {
in.Device = devices[k%len(devices)]
for repeat_counter := 0; repeat_counter < *repeat; repeat_counter++ {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Suggest using camel case here to follow Go idiom.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

Copy link
Contributor

@oscar-davids oscar-davids left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@yondonfu yondonfu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jailuthra jailuthra merged commit f3a299b into master Nov 24, 2021
@yondonfu yondonfu deleted the jai/repeat-bench branch November 24, 2021 15:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants