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

Develop benchmarks #951

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Develop benchmarks #951

wants to merge 5 commits into from

Conversation

brzep
Copy link
Collaborator

@brzep brzep commented Feb 5, 2025

PR for issue #937

Develop more benchmark options:

  • resolution

    • presets
    • iteration
  • outputs

    • iteration
    • maximize
  • run without encoder

  • run without decoder

  • renamed encoder/decoder_count to output/input_count to be more meaningful

@brzep brzep requested a review from jerzywilczek February 5, 2025 14:46
@brzep brzep self-assigned this Feb 5, 2025
@brzep
Copy link
Collaborator Author

brzep commented Feb 5, 2025

I am wondering what kind of resolution presets use to be meaningful and unambiguous. Maybe rename it to sth like Res1080p, Res480p, etc?

pub enum ResolutionPreset {
    Uhd,
    Qhd,
    Fhd,
    Hd,
    Sd,
}

integration_tests/src/bin/benchmark/args.rs Outdated Show resolved Hide resolved
integration_tests/src/bin/benchmark/args.rs Outdated Show resolved Hide resolved
pub encoder_preset: EncoderPreset,
pub disable_encoder: bool,

#[arg(long, global = true, required_unless_present("disable_encoder"))]
Copy link
Collaborator

Choose a reason for hiding this comment

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

We don't need global here, as we don't have subcommands.

Also, you can use default_value instead of Option

Copy link
Collaborator Author

@brzep brzep Feb 7, 2025

Choose a reason for hiding this comment

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

I don't think default_value changes much here, it's not used anyway if disable_encoder is present. Talking about defaults, I would highly consider adding default values to all parameters, so you don't need to specify all of them every time what is a bit inconvenient

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.

2 participants